Enum syn::CaptureBy [−][src]
pub enum CaptureBy { Value, Ref, }
A capture clause
Variants
Value
Ref
Trait Implementations
impl ToTokens for CaptureBy
[src]
impl ToTokens for CaptureBy
impl Debug for CaptureBy
[src]
impl Debug for CaptureBy
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for CaptureBy
[src]
impl Copy for CaptureBy
impl Clone for CaptureBy
[src]
impl Clone for CaptureBy
fn clone(&self) -> CaptureBy
[src]
fn clone(&self) -> CaptureBy
Returns 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 Eq for CaptureBy
[src]
impl Eq for CaptureBy
impl PartialEq for CaptureBy
[src]
impl PartialEq for CaptureBy
fn eq(&self, other: &CaptureBy) -> bool
[src]
fn eq(&self, other: &CaptureBy) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Hash for CaptureBy
[src]
impl Hash for CaptureBy