[][src]Enum chalk_ir::Mutability

pub enum Mutability {
    Mut,
    Not,
}

Whether a type is mutable or not.

Variants

Mut

Mutable

Not

Immutable

Trait Implementations

impl Clone for Mutability[src]

impl Copy for Mutability[src]

impl Debug for Mutability[src]

impl Eq for Mutability[src]

impl<I: Interner, TI: TargetInterner<I>> Fold<I, TI> for Mutability[src]

type Result = Self

The type of value that will be produced once folding is done. Typically this is Self, unless Self contains borrowed values, in which case owned values are produced (for example, one can fold over a &T value where T: Fold, in which case you get back a T, not a &T). Read more

impl Hash for Mutability[src]

impl Ord for Mutability[src]

impl PartialEq<Mutability> for Mutability[src]

impl PartialOrd<Mutability> for Mutability[src]

impl StructuralEq for Mutability[src]

impl StructuralPartialEq for Mutability[src]

impl<I: Interner> Visit<I> for Mutability[src]

Auto Trait Implementations

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> Cast for T[src]

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

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

impl<T, I> Shift<I> for T where
    I: Interner,
    T: Fold<I, I>, 
[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, I> VisitExt<I> for T where
    I: Interner,
    T: Visit<I>, 
[src]