Enum runestick::Key [−][src]
pub enum Key { Unit, Byte(u8), Char(char), Bool(bool), Integer(i64), String(StringKey), Bytes(Bytes), Vec(Vec<Key>), Tuple(Box<[Key]>), Option(Option<Box<Key>>), Variant(VariantKey), }
Expand description
A key that can be used as an anonymous object key.
Variants
A constant unit.
A byte.
Tuple Fields of Byte
0: u8
A character.
Tuple Fields of Char
0: char
A boolean constant value.
Tuple Fields of Bool
0: bool
An integer constant.
Tuple Fields of Integer
0: i64
A string constant designated by its slot.
A byte string.
Tuple Fields of Bytes
0: Bytes
A vector of values.
An anonymous tuple.
An option.
A variant.
Implementations
Convert a value reference into a key.
Convert into virtual machine value.
We provide this associated method since a constant value can be converted into a value infallibly, which is not captured by the trait otherwise.
Trait Implementations
Deserialize implementation for value.
Deserialize this value from the given Serde deserializer. Read more
Try to convert to the given type, from the given value.
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
Serialize implementation for value.
Auto Trait Implementations
impl RefUnwindSafe for Key
impl UnwindSafe for Key
Blanket Implementations
Mutably borrows from an owned value. Read more