pub struct Spanned {
pub node: Node,
pub span: Span,
}Expand description
Spanned syntax node.
Fields§
§node: NodeSyntax node.
span: SpanByte span of the regex string that maps to the node.
Trait Implementations§
impl Copy for Spanned
impl StructuralPartialEq for Spanned
Auto Trait Implementations§
impl Freeze for Spanned
impl RefUnwindSafe for Spanned
impl Send for Spanned
impl Sync for Spanned
impl Unpin for Spanned
impl UnwindSafe for Spanned
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