pub struct Spanned<'src, T> {
pub span: Span<'src>,
pub inner: T,
}
Fields§
§span: Span<'src>
§inner: T
Trait Implementations§
impl<'src, T: Eq> Eq for Spanned<'src, T>
impl<'src, T> StructuralPartialEq for Spanned<'src, T>
Auto Trait Implementations§
impl<'src, T> Freeze for Spanned<'src, T>where
T: Freeze,
impl<'src, T> RefUnwindSafe for Spanned<'src, T>where
T: RefUnwindSafe,
impl<'src, T> Send for Spanned<'src, T>where
T: Send,
impl<'src, T> Sync for Spanned<'src, T>where
T: Sync,
impl<'src, T> Unpin for Spanned<'src, T>where
T: Unpin,
impl<'src, T> UnwindSafe for Spanned<'src, 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more