Struct chalk_ir::debug::SeparatorTraitRef
source · [−]pub struct SeparatorTraitRef<'me, I: Interner> {
pub trait_ref: &'me TraitRef<I>,
pub separator: &'me str,
}
Expand description
Trait ref with associated separator used for debug output.
Fields
trait_ref: &'me TraitRef<I>
The TraitRef
itself.
separator: &'me str
The separator used for displaying the TraitRef
.
Implementations
sourceimpl<'me, I: Interner> SeparatorTraitRef<'me, I>
impl<'me, I: Interner> SeparatorTraitRef<'me, I>
sourcepub fn debug<'a>(&'a self, interner: I) -> SeparatorTraitRefDebug<'a, 'me, I>
pub fn debug<'a>(&'a self, interner: I) -> SeparatorTraitRefDebug<'a, 'me, I>
Show debug output for the SeperatorTraitRef
.
Trait Implementations
Auto Trait Implementations
impl<'me, I> RefUnwindSafe for SeparatorTraitRef<'me, I> where
<I as Interner>::DefId: RefUnwindSafe,
<I as Interner>::InternedSubstitution: RefUnwindSafe,
impl<'me, I> Send for SeparatorTraitRef<'me, I> where
<I as Interner>::DefId: Sync,
<I as Interner>::InternedSubstitution: Sync,
impl<'me, I> Sync for SeparatorTraitRef<'me, I> where
<I as Interner>::DefId: Sync,
<I as Interner>::InternedSubstitution: Sync,
impl<'me, I> Unpin for SeparatorTraitRef<'me, I>
impl<'me, I> UnwindSafe for SeparatorTraitRef<'me, I> where
<I as Interner>::DefId: RefUnwindSafe,
<I as Interner>::InternedSubstitution: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Cast for T
impl<T> Cast for T
sourcefn cast<U>(self, interner: U::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: U::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Cast a value to type U
using CastTo
.