WhereBoundPredicate in rustc_ast::ast - Rust (original) (raw)

Struct WhereBoundPredicate

Source

pub struct WhereBoundPredicate {
    pub bound_generic_params: ThinVec<GenericParam>,
    pub bounded_ty: P<Ty>,
    pub bounds: GenericBounds,
}

Expand description

A type bound.

E.g., for<'c> Foo: Send + Clone + 'c.

Any generics from a for binding.

The type being bounded.

Trait and lifetime bounds (Clone + Send + 'static).

§

§

§

§

§

§

§

§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 40 bytes