#[non_exhaustive]pub enum SourceRole {
Primary,
EnclosingConstruct,
}Expand description
How a source span relates to a node.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Primary
The span the node was typeset from.
EnclosingConstruct
A construct enclosing the node’s own span.
Trait Implementations§
Source§impl Clone for SourceRole
impl Clone for SourceRole
impl Copy for SourceRole
Source§impl Debug for SourceRole
impl Debug for SourceRole
impl Eq for SourceRole
Source§impl PartialEq for SourceRole
impl PartialEq for SourceRole
impl StructuralPartialEq for SourceRole
Auto Trait Implementations§
impl Freeze for SourceRole
impl RefUnwindSafe for SourceRole
impl Send for SourceRole
impl Sync for SourceRole
impl Unpin for SourceRole
impl UnsafeUnpin for SourceRole
impl UnwindSafe for SourceRole
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