#[repr(transparent)]pub struct WithSpan {
pub span: Span,
}Expand description
Support writing token.span rather than token.spans[0] on tokens that
hold a single span.
Fields§
§span: SpanAuto Trait Implementations§
impl Freeze for WithSpan
impl RefUnwindSafe for WithSpan
impl !Send for WithSpan
impl !Sync for WithSpan
impl Unpin for WithSpan
impl UnwindSafe for WithSpan
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