Enum synstructure::BindStyle [−][src]
pub enum BindStyle {
Move,
MoveMut,
Ref,
RefMut,
}The type of binding to use when generating a pattern.
Variants
Movex
MoveMutmut x
Refref x
RefMutref mut x
Trait Implementations
impl Debug for BindStyle[src]
impl Debug for BindStylefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for BindStyle[src]
impl Copy for BindStyleimpl Clone for BindStyle[src]
impl Clone for BindStylefn clone(&self) -> BindStyle[src]
fn clone(&self) -> BindStyleReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for BindStyle[src]
impl PartialEq for BindStylefn eq(&self, other: &BindStyle) -> bool[src]
fn eq(&self, other: &BindStyle) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for BindStyle[src]
impl Eq for BindStyleimpl Hash for BindStyle[src]
impl Hash for BindStylefn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl ToTokens for BindStyle[src]
impl ToTokens for BindStylefn to_tokens(&self, tokens: &mut TokenStream)[src]
fn to_tokens(&self, tokens: &mut TokenStream)Write self to the given TokenStream. Read more
fn into_token_stream(self) -> TokenStream[src]
fn into_token_stream(self) -> TokenStreamConvert self directly into a TokenStream object. Read more