pub enum TypeModifier {
Identifier(Ident),
Number(String, bool),
String(String),
}Expand description
One entry of a custom data type’s parenthesized modifier list.
Variants§
Identifier(Ident)
Identifier or keyword segment, quotes carried by Ident.
Number(String, bool)
Numeric literal, the bool carries the L long suffix like Value::Number.
String(String)
Single quoted string literal.
Trait Implementations§
Source§impl Clone for TypeModifier
impl Clone for TypeModifier
Source§fn clone(&self) -> TypeModifier
fn clone(&self) -> TypeModifier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeModifier
impl Debug for TypeModifier
Source§impl Display for TypeModifier
impl Display for TypeModifier
impl Eq for TypeModifier
Source§impl Hash for TypeModifier
impl Hash for TypeModifier
Source§impl Ord for TypeModifier
impl Ord for TypeModifier
Source§fn cmp(&self, other: &TypeModifier) -> Ordering
fn cmp(&self, other: &TypeModifier) -> Ordering
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 PartialEq for TypeModifier
impl PartialEq for TypeModifier
Source§impl PartialOrd for TypeModifier
impl PartialOrd for TypeModifier
impl StructuralPartialEq for TypeModifier
Auto Trait Implementations§
impl Freeze for TypeModifier
impl RefUnwindSafe for TypeModifier
impl Send for TypeModifier
impl Sync for TypeModifier
impl Unpin for TypeModifier
impl UnsafeUnpin for TypeModifier
impl UnwindSafe for TypeModifier
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