pub(crate) struct Spanning<T: ?Sized> {
pub(crate) span: Span,
pub(crate) item: T,
}Fields§
§span: SpanSpan of the item.
item: TItem the Span is held for.
Implementations§
Trait Implementations§
impl<T: Copy + ?Sized> Copy for Spanning<T>
Auto Trait Implementations§
impl<T> Freeze for Spanning<T>
impl<T> RefUnwindSafe for Spanning<T>where
T: RefUnwindSafe + ?Sized,
impl<T> !Send for Spanning<T>
impl<T> !Sync for Spanning<T>
impl<T> Unpin for Spanning<T>
impl<T> UnwindSafe for Spanning<T>where
T: UnwindSafe + ?Sized,
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