pub enum LiteralElementClass {
Numeric,
Boolean,
String,
List,
Map,
}Expand description
The element class CIP-271’s homogeneous-list gate compares: INTEGER and FLOAT are one numeric element type, every other literal kind keeps its own.
Variants§
Implementations§
Source§impl LiteralElementClass
impl LiteralElementClass
Sourcepub fn of_kind(kind: LiteralValueKind) -> Option<Self>
pub fn of_kind(kind: LiteralValueKind) -> Option<Self>
The class of a literal kind, or None for null: a null element makes
the list LIST<ANY>, which is the CIP-271 rule rather than an
unclassifiable value.
Trait Implementations§
Source§impl Clone for LiteralElementClass
impl Clone for LiteralElementClass
impl Copy for LiteralElementClass
Source§impl Debug for LiteralElementClass
impl Debug for LiteralElementClass
impl Eq for LiteralElementClass
Source§impl PartialEq for LiteralElementClass
impl PartialEq for LiteralElementClass
impl StructuralPartialEq for LiteralElementClass
Auto Trait Implementations§
impl Forget for LiteralElementClass
impl Freeze for LiteralElementClass
impl Move for LiteralElementClass
impl RefUnwindSafe for LiteralElementClass
impl Send for LiteralElementClass
impl Sync for LiteralElementClass
impl Unpin for LiteralElementClass
impl UnsafeUnpin for LiteralElementClass
impl UnwindSafe for LiteralElementClass
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§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.