pub struct Spanned<T> {
pub value: T,
pub span: Span,
}Fields§
§value: T§span: SpanImplementations§
Trait Implementations§
Source§impl From<FloatLiteral> for Spanned<Token>
impl From<FloatLiteral> for Spanned<Token>
Source§fn from(value: FloatLiteral) -> Self
fn from(value: FloatLiteral) -> Self
Converts to this type from the input type.
Source§impl From<GlobalName> for Spanned<Token>
impl From<GlobalName> for Spanned<Token>
Source§fn from(value: GlobalName) -> Self
fn from(value: GlobalName) -> Self
Converts to this type from the input type.
Source§impl From<Spanned<ExtendedType>> for FieldType
impl From<Spanned<ExtendedType>> for FieldType
Source§fn from(value: Spanned<ExtendedType>) -> Self
fn from(value: Spanned<ExtendedType>) -> Self
Converts to this type from the input type.
Source§impl From<Spanned<SubWordType>> for AbiType
impl From<Spanned<SubWordType>> for AbiType
Source§fn from(value: Spanned<SubWordType>) -> Self
fn from(value: Spanned<SubWordType>) -> Self
Converts to this type from the input type.
Source§impl From<StringLiteral> for Spanned<Token>
impl From<StringLiteral> for Spanned<Token>
Source§fn from(value: StringLiteral) -> Self
fn from(value: StringLiteral) -> Self
Converts to this type from the input type.
Source§impl From<TemporaryName> for Spanned<Token>
impl From<TemporaryName> for Spanned<Token>
Source§fn from(value: TemporaryName) -> Self
fn from(value: TemporaryName) -> Self
Converts to this type from the input type.
Source§impl<T: Ord> Ord for Spanned<T>
impl<T: Ord> Ord for Spanned<T>
1.21.0 · 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
Source§impl<T: PartialOrd> PartialOrd for Spanned<T>
impl<T: PartialOrd> PartialOrd for Spanned<T>
impl<T: Copy> Copy for Spanned<T>
impl<T: Eq> Eq for Spanned<T>
impl<T> StructuralPartialEq for Spanned<T>
Auto Trait Implementations§
impl<T> Freeze for Spanned<T>where
T: Freeze,
impl<T> RefUnwindSafe for Spanned<T>where
T: RefUnwindSafe,
impl<T> Send for Spanned<T>where
T: Send,
impl<T> Sync for Spanned<T>where
T: Sync,
impl<T> Unpin for Spanned<T>where
T: Unpin,
impl<T> UnwindSafe for Spanned<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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.