Struct rustc_trait_selection::traits::util::TraitAliasExpansionInfo [−][src]
Expand description
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]
impl<'tcx> TraitAliasExpansionInfo<'tcx>[src]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]
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]
fn clone_and_push(&self, trait_ref: PolyTraitRef<'tcx>, span: Span) -> Self[src]
Trait Implementations
impl<'tcx> Clone for TraitAliasExpansionInfo<'tcx>[src]
impl<'tcx> Clone for TraitAliasExpansionInfo<'tcx>[src]fn clone(&self) -> TraitAliasExpansionInfo<'tcx>[src]
fn clone(&self) -> TraitAliasExpansionInfo<'tcx>[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]