pub struct Spanned<'f, T> {
pub span: Span<'f>,
pub item: T,
}
Fields§
§span: Span<'f>
§item: T
Implementations§
Trait Implementations§
impl<'f, T> StructuralPartialEq for Spanned<'f, T>
Auto Trait Implementations§
impl<'f, T> Freeze for Spanned<'f, T>where
T: Freeze,
impl<'f, T> RefUnwindSafe for Spanned<'f, T>where
T: RefUnwindSafe,
impl<'f, T> Send for Spanned<'f, T>where
T: Send,
impl<'f, T> Sync for Spanned<'f, T>where
T: Sync,
impl<'f, T> Unpin for Spanned<'f, T>where
T: Unpin,
impl<'f, T> UnwindSafe for Spanned<'f, 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