[−][src]Struct rustc_trait_selection::traits::util::TraitAliasExpansionInfo

pub struct TraitAliasExpansionInfo<'tcx> {
    pub path: SmallVec<[(PolyTraitRef<'tcx>, Span); 4]>,
}

Stores information about the expansion of a trait via a path of zero or more trait aliases.

Fields

path: SmallVec<[(PolyTraitRef<'tcx>, Span); 4]>

Implementations

impl<'tcx> TraitAliasExpansionInfo<'tcx>[src]

pub(in traits::util) fn new(
    trait_ref: PolyTraitRef<'tcx>,
    span: Span
) -> Self
[src]

pub fn label_with_exp_info(
    &self,
    diag: &mut DiagnosticBuilder<'_>,
    top_label: &str,
    use_desc: &str
)
[src]

Adds diagnostic labels to diag for the expansion path of a trait through all intermediate trait aliases.

pub fn trait_ref(&self) -> PolyTraitRef<'tcx>[src]

pub fn top(&self) -> &(PolyTraitRef<'tcx>, Span)[src]

pub fn bottom(&self) -> &(PolyTraitRef<'tcx>, Span)[src]

pub(in traits::util) fn clone_and_push(
    &self,
    trait_ref: PolyTraitRef<'tcx>,
    span: Span
) -> Self
[src]

Trait Implementations

impl<'tcx> Clone for TraitAliasExpansionInfo<'tcx>[src]

impl<'tcx> Debug for TraitAliasExpansionInfo<'tcx>[src]

Auto Trait Implementations

impl<'tcx> !RefUnwindSafe for TraitAliasExpansionInfo<'tcx>

impl<'tcx> !Send for TraitAliasExpansionInfo<'tcx>

impl<'tcx> !Sync for TraitAliasExpansionInfo<'tcx>

impl<'tcx> Unpin for TraitAliasExpansionInfo<'tcx>

impl<'tcx> !UnwindSafe for TraitAliasExpansionInfo<'tcx>

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> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<T> WithConstness for T[src]