pub enum FieldType {
Named(TypeName),
Extended(ExtendedType, Span),
}Expand description
Refers to the type of a field.
Variants§
Named(TypeName)
Extended(ExtendedType, Span)
Implementations§
Trait Implementations§
Source§impl From<ExtendedType> for FieldType
impl From<ExtendedType> for FieldType
Source§fn from(value: ExtendedType) -> Self
fn from(value: ExtendedType) -> 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.
impl Eq for FieldType
impl StructuralPartialEq for FieldType
Auto Trait Implementations§
impl Freeze for FieldType
impl RefUnwindSafe for FieldType
impl Send for FieldType
impl Sync for FieldType
impl Unpin for FieldType
impl UnwindSafe for FieldType
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> 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.