pub struct WithSpan<T>(pub T, pub Span);
Expand description
Helper type for parsing a type and preserving the original span
Used with syn::punctuated::Punctuated to capture the inner span of an attribute.
Tuple Fields§
§0: T
§1: Span
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for WithSpan<T>where
T: Freeze,
impl<T> RefUnwindSafe for WithSpan<T>where
T: RefUnwindSafe,
impl<T> !Send for WithSpan<T>
impl<T> !Sync for WithSpan<T>
impl<T> Unpin for WithSpan<T>where
T: Unpin,
impl<T> UnwindSafe for WithSpan<T>where
T: UnwindSafe,
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