Struct chalk_ir::debug::SeparatorTraitRef[][src]

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

impl<'me, I: Interner> SeparatorTraitRef<'me, I>[src]

pub fn debug<'a>(
    &'a self,
    interner: &'a I
) -> SeparatorTraitRefDebug<'a, 'me, I>
[src]

Show debug output for the SeperatorTraitRef.

Trait Implementations

impl<I: Interner> Debug for SeparatorTraitRef<'_, I>[src]

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

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

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> Cast for T[src]

fn cast<U>(self, interner: &U::Interner) -> U where
    Self: CastTo<U>,
    U: HasInterner
[src]

Cast a value to type U using CastTo.

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.