pub enum Kind {
Null,
Bool,
Int,
Float,
Text,
Array,
Object,
}Expand description
What a value is, as a caller sees it.
The wire keeps object and array apart with a bit rather than a kind, since
they share a layout, but nobody outside this crate wants to write
kind == Container && is_array() so the two are separate here.
Variants§
Null
null.
Bool
true or false.
Int
A signed 64 bit integer.
Float
A 64 bit float.
Text
A UTF-8 string.
Array
An ordered list of values.
Object
A set of keys, each with a value.
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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