CodeQL library for Rust
codeql/rust-all 0.2.13 (changelog, source)
Search

Class Raw::ReturnTypeSyntax

INTERNAL: Do not use. A return type notation (..) to reference or bound the type returned by a trait method

For example:

struct ReverseWidgets<F: Factory<widgets(..): DoubleEndedIterator>> {
    factory: F,
}

impl<F> Factory for ReverseWidgets<F>
where
  F: Factory<widgets(..): DoubleEndedIterator>,
{
  fn widgets(&self) -> impl Iterator<Item = Widget> {
    self.factory.widgets().rev()
  }
}

Import path

import codeql.rust.elements.internal.generated.Raw

Direct supertypes

Indirect supertypes

Predicates