[−][src]Struct rustc_hir::WhereBoundPredicate

pub struct WhereBoundPredicate<'hir> {
    pub span: Span,
    pub bound_generic_params: &'hir [GenericParam<'hir>],
    pub bounded_ty: &'hir Ty<'hir>,
    pub bounds: GenericBounds<'hir>,
}

A type bound (e.g., for<'c> Foo: Send + Clone + 'c).

Fields

span: Spanbound_generic_params: &'hir [GenericParam<'hir>]

Any generics from a for binding.

bounded_ty: &'hir Ty<'hir>

The type being bounded.

bounds: GenericBounds<'hir>

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

Trait Implementations

impl<'hir> Debug for WhereBoundPredicate<'hir>[src]

impl<'hir, __CTX> HashStable<__CTX> for WhereBoundPredicate<'hir> where
    __CTX: HashStableContext, 
[src]

Auto Trait Implementations

impl<'hir> !RefUnwindSafe for WhereBoundPredicate<'hir>

impl<'hir> !Send for WhereBoundPredicate<'hir>

impl<'hir> !Sync for WhereBoundPredicate<'hir>

impl<'hir> Unpin for WhereBoundPredicate<'hir>

impl<'hir> !UnwindSafe for WhereBoundPredicate<'hir>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.