[][src]Enum chalk_ir::Safety

pub enum Safety {
    Safe,
    Unsafe,
}

Whether a function is safe or not.

Variants

Safe

Safe

Unsafe

Unsafe

Trait Implementations

impl Clone for Safety[src]

impl Copy for Safety[src]

impl Debug for Safety[src]

impl Eq for Safety[src]

impl<I: Interner, TI: TargetInterner<I>> Fold<I, TI> for Safety[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 Safety[src]

impl Ord for Safety[src]

impl PartialEq<Safety> for Safety[src]

impl PartialOrd<Safety> for Safety[src]

impl StructuralEq for Safety[src]

impl StructuralPartialEq for Safety[src]

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

Auto Trait Implementations

impl RefUnwindSafe for Safety

impl Send for Safety

impl Sync for Safety

impl Unpin for Safety

impl UnwindSafe for Safety

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]