Enum gluon_vm::api::json::Value [−][src]
pub enum Value {
Null,
Bool(bool),
Int(i64),
Float(f64),
String(JsonString),
Array(Vec<JsonValue>),
Object(BTreeMap<JsonString, JsonValue>),
}
Variants
Bool(bool)
Tuple Fields of Bool
0: bool
Int(i64)
Tuple Fields of Int
0: i64
Float(f64)
Tuple Fields of Float
0: f64
String(JsonString)
Tuple Fields of String
0: JsonString
Object(BTreeMap<JsonString, JsonValue>)
Tuple Fields of Object
0: BTreeMap<JsonString, JsonValue>
Trait Implementations
type Proxy = _GluonVariants<'__value>
Pushes self
to stack
. If the call is successful a single element should have been added
to the stack and Ok(())
should be returned. If the call is unsuccessful Status:Error
should be returned and the stack should be left intact Read more
fn serialize_state<__S>(
&self,
__serializer: __S,
__seed: &Thread
) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
fn serialize_state<__S>(
&self,
__serializer: __S,
__seed: &Thread
) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
Serializes self
Auto Trait Implementations
impl !RefUnwindSafe for Value
impl !UnwindSafe for Value
Blanket Implementations
Pushes self
to stack
. If the call is successful a single element should have been added
to the stack and Ok(())
should be returned. If the call is unsuccessful Status:Error
should be returned and the stack should be left intact. Read more
fn async_status_push(
self,
context: &mut ActiveThread<'vm>,
lock: Lock,
frame_index: VmIndex
) -> Status where
Self: Sized,
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more