Enum amplify_syn::LiteralClass [−][src]
pub enum LiteralClass { Str, ByteStr, Byte, Char, Int, Float, Bool, Verbatim, }
Constrains for literal value type
Variants
Literal must be a string
Literal must be a byte string
Literal must be a byte (in form of b'f'
)
Literal must be a character
Literal must be an integer
Literal must be a float
Literal must be a boolean
Literal must be a verbatim form
Implementations
impl LiteralClass
[src]
impl LiteralClass
[src]Trait Implementations
impl Clone for LiteralClass
[src]
impl Clone for LiteralClass
[src]fn clone(&self) -> LiteralClass
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for LiteralClass
[src]
impl Copy for LiteralClass
[src]impl Eq for LiteralClass
[src]
impl Eq for LiteralClass
[src]impl Hash for LiteralClass
[src]
impl Hash for LiteralClass
[src]impl Ord for LiteralClass
[src]
impl Ord for LiteralClass
[src]impl PartialEq<LiteralClass> for LiteralClass
[src]
impl PartialEq<LiteralClass> for LiteralClass
[src]impl PartialOrd<LiteralClass> for LiteralClass
[src]
impl PartialOrd<LiteralClass> for LiteralClass
[src]fn partial_cmp(&self, other: &LiteralClass) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl StructuralEq for LiteralClass
[src]
impl StructuralEq for LiteralClass
[src]impl StructuralPartialEq for LiteralClass
[src]
impl StructuralPartialEq for LiteralClass
[src]Auto Trait Implementations
impl RefUnwindSafe for LiteralClass
impl RefUnwindSafe for LiteralClass
impl Send for LiteralClass
impl Send for LiteralClass
impl Sync for LiteralClass
impl Sync for LiteralClass
impl Unpin for LiteralClass
impl Unpin for LiteralClass
impl UnwindSafe for LiteralClass
impl UnwindSafe for LiteralClass