Enum synstructure::BindStyle[][src]

pub enum BindStyle {
    Move,
    MoveMut,
    Ref,
    RefMut,
}

The type of binding to use when generating a pattern.

Variants

Move

x

MoveMut

mut x

Ref

ref x

RefMut

ref mut x

Trait Implementations

impl Clone for BindStyle[src]

impl Copy for BindStyle[src]

impl Debug for BindStyle[src]

impl Eq for BindStyle[src]

impl Hash for BindStyle[src]

impl PartialEq<BindStyle> for BindStyle[src]

impl StructuralEq for BindStyle[src]

impl StructuralPartialEq for BindStyle[src]

impl ToTokens for BindStyle[src]

Auto Trait Implementations

impl RefUnwindSafe for BindStyle

impl Send for BindStyle

impl Sync for BindStyle

impl Unpin for BindStyle

impl UnwindSafe for BindStyle

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> Spanned for T where
    T: Spanned + ?Sized
[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.