Enum syntax::ast::LocalSourceUnstable [-] [+] [src]

pub enum LocalSource {
    LocalLet,
    LocalFor,
}

Where a local declaration came from: either a true let ... = ...;, or one desugared from the pattern of a for loop.

Variants

LocalLet
LocalFor

Trait Implementations

Derived Implementations

impl Copy for LocalSource

impl Debug for LocalSource

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for LocalSource

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Decodable for LocalSource

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<LocalSource, Error>

impl Encodable for LocalSource

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), Error>

impl Eq for LocalSource

fn assert_receiver_is_total_eq(&self)

impl PartialEq for LocalSource

fn eq(&self, __arg_0: &LocalSource) -> bool

fn ne(&self, __arg_0: &LocalSource) -> bool

impl Clone for LocalSource

fn clone(&self) -> LocalSource

fn clone_from(&mut self, source: &Self)