pub struct WithSpan<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§
Source§impl<T> BorrowMut<T> for WithSpan<T>
impl<T> BorrowMut<T> for WithSpan<T>
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T: Copy> Copy for WithSpan<T>
impl<T: Eq> Eq for WithSpan<T>
Source§impl<T: Ord> Ord for WithSpan<T>
impl<T: Ord> Ord for WithSpan<T>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<T: PartialOrd, R: AsRef<T>> PartialOrd<R> for WithSpan<T>
impl<T: PartialOrd, R: AsRef<T>> PartialOrd<R> for WithSpan<T>
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>where
T: Send,
impl<T> Sync for WithSpan<T>where
T: Sync,
impl<T> Unpin for WithSpan<T>where
T: Unpin,
impl<T> UnsafeUnpin for WithSpan<T>where
T: UnsafeUnpin,
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