pub enum FragmentKind {
Show 13 variants
Block,
Expr,
Ident,
Item,
Lifetime,
Meta,
Pat,
Path,
PatParam,
Stmt,
Tt,
Ty,
Vis,
}
Expand description
A specific kind of fragment.
Variants§
Block
A block (block
).
Expr
An expression (expr
).
Ident
An identifier or a raw identifier (ident
).
Item
An item (item
).
Lifetime
A lifetime (lifetime
).
Meta
An attribute content (meta
)
Pat
A pattern (including alternative) (pat
).
Path
A path (path
).
PatParam
A pattern (excluding alternative) (pat_param
).
Stmt
A statement (stmt
).
Tt
A token tree (tt
).
Ty
A type (ty
).
Vis
A visibility (vis
).
Trait Implementations§
Source§impl Clone for FragmentKind
impl Clone for FragmentKind
Source§fn clone(&self) -> FragmentKind
fn clone(&self) -> FragmentKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FragmentKind
impl Debug for FragmentKind
Source§impl FromStr for FragmentKind
impl FromStr for FragmentKind
Source§impl Hash for FragmentKind
impl Hash for FragmentKind
Source§impl PartialEq for FragmentKind
impl PartialEq for FragmentKind
impl Copy for FragmentKind
impl Eq for FragmentKind
impl StructuralPartialEq for FragmentKind
Auto Trait Implementations§
impl Freeze for FragmentKind
impl RefUnwindSafe for FragmentKind
impl Send for FragmentKind
impl Sync for FragmentKind
impl Unpin for FragmentKind
impl UnwindSafe for FragmentKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more