#[repr(C)]pub struct TypeToken<'input> {
pub kind: TypeTokenKind,
pub value: &'input str,
pub span: Span,
}Fields§
§kind: TypeTokenKind§value: &'input str§span: SpanTrait Implementations§
Source§impl<'de: 'input, 'input> Deserialize<'de> for TypeToken<'input>
impl<'de: 'input, 'input> Deserialize<'de> for TypeToken<'input>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'input> From<TypeToken<'input>> for Identifier<'input>
impl<'input> From<TypeToken<'input>> for Identifier<'input>
Source§impl<'input> From<TypeToken<'input>> for VariableType<'input>
impl<'input> From<TypeToken<'input>> for VariableType<'input>
Source§impl<'input> Ord for TypeToken<'input>
impl<'input> Ord for TypeToken<'input>
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<'input> PartialOrd for TypeToken<'input>
impl<'input> PartialOrd for TypeToken<'input>
impl<'input> Copy for TypeToken<'input>
impl<'input> Eq for TypeToken<'input>
impl<'input> StructuralPartialEq for TypeToken<'input>
Auto Trait Implementations§
impl<'input> Freeze for TypeToken<'input>
impl<'input> RefUnwindSafe for TypeToken<'input>
impl<'input> Send for TypeToken<'input>
impl<'input> Sync for TypeToken<'input>
impl<'input> Unpin for TypeToken<'input>
impl<'input> UnwindSafe for TypeToken<'input>
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