pub enum Fragment {
Item,
Block,
Statement,
Expression,
MatchPattern,
Type,
Identifier,
Path,
Lifetime,
Literal,
Attribute,
Tokens,
}Expand description
Which fragment of Rust one seat matches.
The language’s own roster, minus a visibility: a reach is declared at a coordinate rather than captured as a fragment, because a captured one cannot be transported one module deeper.
Variants§
Item
A whole item.
Block
A braced block.
Statement
One statement.
Expression
One expression.
MatchPattern
One match pattern.
Type
One type.
Identifier
One identifier.
Path
One path.
Lifetime
One lifetime.
Literal
One literal.
Attribute
The body of one attribute.
Tokens
One token tree, whatever it is.
Implementations§
Trait Implementations§
impl Copy for Fragment
impl Eq for Fragment
impl StructuralPartialEq for Fragment
Auto Trait Implementations§
impl Freeze for Fragment
impl RefUnwindSafe for Fragment
impl Send for Fragment
impl Sync for Fragment
impl Unpin for Fragment
impl UnsafeUnpin for Fragment
impl UnwindSafe for Fragment
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