pub struct WithSpan<'a, T> { /* private fields */ }Expand description
Struct used to wrap types with their associated “span” which is used when generating errors in the code generation.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for WithSpan<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for WithSpan<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for WithSpan<'a, T>where
T: Send,
impl<'a, T> Sync for WithSpan<'a, T>where
T: Sync,
impl<'a, T> Unpin for WithSpan<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for WithSpan<'a, 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