#[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: Span
Auto 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