Enum amplify_syn::ValueClass [−][src]
pub enum ValueClass {
Literal(LiteralClass),
Type(TypeClass),
}
Expand description
Constrains for attribute value type
Variants
The value must be a literal matching given literal constraints (see
LiteralClass
)
Tuple Fields of Literal
0: LiteralClass
The value must be of a native rust type matching given type constraints
(see TypeClass
)
Tuple Fields of Type
0: TypeClass
Implementations
Convenience constructor creating
ValueClass::Literal(LiteralClass::Str)
Convenience constructor creating
ValueClass::Literal(LiteralClass::ByteStr)
Convenience constructor creating
ValueClass::Literal(LiteralClass::Byte)
Convenience constructor creating
ValueClass::Literal(LiteralClass::Int)
Convenience constructor creating
ValueClass::Literal(LiteralClass::Float)
Convenience constructor creating
ValueClass::Literal(LiteralClass::Char)
Convenience constructor creating
ValueClass::Literal(LiteralClass::Bool)
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ValueClass
impl Send for ValueClass
impl Sync for ValueClass
impl Unpin for ValueClass
impl UnwindSafe for ValueClass
Blanket Implementations
Mutably borrows from an owned value. Read more