[][src]Enum zamm_yang::codegen::template::basic::SelfReference

pub enum SelfReference {
    None,
    Immutable,
    Mutable,
}

The type of reference to &self in a function argument.

Variants

None

When this function makes no reference to a containing struct. Equivalent to no "self" in the arguments list

Immutable

Equivalent to "&self" at the beginning of the arguments list.

Mutable

Equivalent to "&mut self" at the beginning of the arguments list.

Trait Implementations

impl Default for SelfReference[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> From<T> for T[src]

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

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> Typeable for T where
    T: Any