Enum syntax::ext::expand::AstFragmentKind [−][src]
pub enum AstFragmentKind {
OptExpr,
Expr,
Pat,
Ty,
Stmts,
Items,
TraitItems,
ImplItems,
ForeignItems,
}"Discriminant" of an AST fragment.
Variants
OptExprExprPatTyStmtsItemsTraitItemsImplItemsForeignItems
Methods
impl AstFragmentKind[src]
impl AstFragmentKindTrait Implementations
impl Copy for AstFragmentKind[src]
impl Copy for AstFragmentKindimpl Clone for AstFragmentKind[src]
impl Clone for AstFragmentKindfn clone(&self) -> AstFragmentKind[src]
fn clone(&self) -> AstFragmentKindReturns 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 AstFragmentKind[src]
impl PartialEq for AstFragmentKindfn eq(&self, other: &AstFragmentKind) -> bool[src]
fn eq(&self, other: &AstFragmentKind) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for AstFragmentKind[src]
impl Eq for AstFragmentKindAuto Trait Implementations
impl Send for AstFragmentKind
impl Send for AstFragmentKindimpl Sync for AstFragmentKind
impl Sync for AstFragmentKind