Skip to main content

RuntimeValue

Enum RuntimeValue 

Source
pub enum RuntimeValue {
    Null,
    Bool(bool),
    Int(i128),
    Bytes(Vec<u8>),
    String(String),
    Array(Vec<RuntimeValue>),
    Object(BTreeMap<String, RuntimeValue>),
}
Expand description

Dynamically-typed value carried by the IR interpreter and witness backends. See module docs for design notes.

Deserialize is hand-written (see below) rather than derived #[serde(untagged)] because serde’s untagged dispatch buffers integers through its internal Content enum, which has no i128 variant. CBOR integers (the IR-on-disk format) would silently fail to match the Int(i128) variant. The hand-written visitor accepts every CBOR / JSON primitive and chooses the RuntimeValue variant directly.

Variants§

§

Null

§

Bool(bool)

§

Int(i128)

All Compact Uint<…> rungs fit; values above i128 (which Compact doesn’t emit at the value layer) are not representable.

§

Bytes(Vec<u8>)

Raw byte buffer — Bytes<N>, Opaque<Uint8Array>, Field (32-byte LE), JubjubPoint coords.

§

String(String)

Opaque<string> and enum variant names.

§

Array(Vec<RuntimeValue>)

Vector<…, T> and Tuple<…> payloads.

§

Object(BTreeMap<String, RuntimeValue>)

Struct payloads keyed by IR field name. Ordered for determinism across runs.

Implementations§

Source§

impl RuntimeValue

Source

pub fn unit() -> Self

Convenience constructor for unit / Tuple<> results.

Source

pub fn field(&self, name: &str) -> Option<&RuntimeValue>

Borrow a struct field by name. Returns None if self is not an object or the field is absent.

Source

pub fn type_label(&self) -> &'static str

Type tag string for diagnostics.

Source

pub fn is_null(&self) -> bool

Source

pub fn is_number(&self) -> bool

Source

pub fn is_string(&self) -> bool

Source

pub fn is_array(&self) -> bool

Source

pub fn is_object(&self) -> bool

Source

pub fn is_bool(&self) -> bool

Source

pub fn as_bool(&self) -> Option<bool>

Source

pub fn as_i128(&self) -> Option<i128>

Source

pub fn as_u64(&self) -> Option<u64>

Source

pub fn as_u128(&self) -> Option<u128>

Source

pub fn as_str(&self) -> Option<&str>

Source

pub fn as_bytes(&self) -> Option<&[u8]>

Source

pub fn as_array(&self) -> Option<&Vec<RuntimeValue>>

Source

pub fn as_array_mut(&mut self) -> Option<&mut Vec<RuntimeValue>>

Source

pub fn as_object(&self) -> Option<&BTreeMap<String, RuntimeValue>>

Source

pub fn as_object_mut(&mut self) -> Option<&mut BTreeMap<String, RuntimeValue>>

Source

pub fn get<I: ValueIndex>(&self, idx: I) -> Option<&RuntimeValue>

Object field / array index lookup. Mirrors serde_json::Value::get. Accepts a &str (object key) or usize (array index).

Trait Implementations§

Source§

impl Clone for RuntimeValue

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RuntimeValue

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for RuntimeValue

Source§

fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<'de> Deserializer<'de> for &'de RuntimeValue

Source§

type Error = FromValueError

The error type that can be returned if some error occurs during deserialization.
Source§

fn deserialize_any<V: Visitor<'de>>( self, visitor: V, ) -> Result<V::Value, Self::Error>

Require the Deserializer to figure out how to drive the visitor based on what data type is in the input. Read more
Source§

fn deserialize_option<V: Visitor<'de>>( self, visitor: V, ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting an optional value. Read more
Source§

fn deserialize_newtype_struct<V: Visitor<'de>>( self, _name: &'static str, visitor: V, ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a newtype struct with a particular name.
Source§

fn deserialize_bytes<V: Visitor<'de>>( self, visitor: V, ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a byte array and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_byte_buf<V: Visitor<'de>>( self, visitor: V, ) -> Result<V::Value, Self::Error>

Hint that the Deserialize type is expecting a byte array and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_bool<V>( self, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a bool value.
Source§

fn deserialize_i8<V>( self, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i8 value.
Source§

fn deserialize_i16<V>( self, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i16 value.
Source§

fn deserialize_i32<V>( self, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i32 value.
Source§

fn deserialize_i64<V>( self, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i64 value.
Source§

fn deserialize_i128<V>( self, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an i128 value. Read more
Source§

fn deserialize_u8<V>( self, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u8 value.
Source§

fn deserialize_u16<V>( self, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u16 value.
Source§

fn deserialize_u32<V>( self, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u32 value.
Source§

fn deserialize_u64<V>( self, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a u64 value.
Source§

fn deserialize_u128<V>( self, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an u128 value. Read more
Source§

fn deserialize_f32<V>( self, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a f32 value.
Source§

fn deserialize_f64<V>( self, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a f64 value.
Source§

fn deserialize_char<V>( self, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a char value.
Source§

fn deserialize_str<V>( self, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a string value and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_string<V>( self, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a string value and would benefit from taking ownership of buffered data owned by the Deserializer. Read more
Source§

fn deserialize_unit<V>( self, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a unit value.
Source§

fn deserialize_unit_struct<V>( self, name: &'static str, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a unit struct with a particular name.
Source§

fn deserialize_seq<V>( self, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a sequence of values.
Source§

fn deserialize_tuple<V>( self, len: usize, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a sequence of values and knows how many values there are without looking at the serialized data.
Source§

fn deserialize_tuple_struct<V>( self, name: &'static str, len: usize, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a tuple struct with a particular name and number of fields.
Source§

fn deserialize_map<V>( self, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a map of key-value pairs.
Source§

fn deserialize_struct<V>( self, name: &'static str, fields: &'static [&'static str], visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a struct with a particular name and fields.
Source§

fn deserialize_enum<V>( self, name: &'static str, variants: &'static [&'static str], visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an enum value with a particular name and possible variants.
Source§

fn deserialize_identifier<V>( self, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting the name of a struct field or the discriminant of an enum variant.
Source§

fn deserialize_ignored_any<V>( self, visitor: V, ) -> Result<V::Value, <Self as Deserializer<'de>>::Error>
where V: Visitor<'de>,

Hint that the Deserialize type needs to deserialize a value whose type doesn’t matter because it is ignored. Read more
Source§

fn is_human_readable(&self) -> bool

Determine whether Deserialize implementations should expect to deserialize their human-readable form. Read more
Source§

impl Display for RuntimeValue

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for RuntimeValue

Source§

impl From<&str> for RuntimeValue

Source§

fn from(s: &str) -> Self

Converts to this type from the input type.
Source§

impl From<()> for RuntimeValue

Source§

fn from((): ()) -> Self

Converts to this type from the input type.
Source§

impl<T0, T1> From<(T0, T1)> for RuntimeValue

Source§

fn from(t: (T0, T1)) -> Self

Converts to this type from the input type.
Source§

impl<T0, T1, T2> From<(T0, T1, T2)> for RuntimeValue

Source§

fn from(t: (T0, T1, T2)) -> Self

Converts to this type from the input type.
Source§

impl<T0, T1, T2, T3> From<(T0, T1, T2, T3)> for RuntimeValue

Source§

fn from(t: (T0, T1, T2, T3)) -> Self

Converts to this type from the input type.
Source§

impl<T0, T1, T2, T3, T4> From<(T0, T1, T2, T3, T4)> for RuntimeValue

Source§

fn from(t: (T0, T1, T2, T3, T4)) -> Self

Converts to this type from the input type.
Source§

impl<T0, T1, T2, T3, T4, T5> From<(T0, T1, T2, T3, T4, T5)> for RuntimeValue

Source§

fn from(t: (T0, T1, T2, T3, T4, T5)) -> Self

Converts to this type from the input type.
Source§

impl<T0, T1, T2, T3, T4, T5, T6> From<(T0, T1, T2, T3, T4, T5, T6)> for RuntimeValue

Source§

fn from(t: (T0, T1, T2, T3, T4, T5, T6)) -> Self

Converts to this type from the input type.
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7> From<(T0, T1, T2, T3, T4, T5, T6, T7)> for RuntimeValue

Source§

fn from(t: (T0, T1, T2, T3, T4, T5, T6, T7)) -> Self

Converts to this type from the input type.
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8)> for RuntimeValue

Source§

fn from(t: (T0, T1, T2, T3, T4, T5, T6, T7, T8)) -> Self

Converts to this type from the input type.
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)> for RuntimeValue

Source§

fn from(t: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)) -> Self

Converts to this type from the input type.
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> for RuntimeValue

Source§

fn from(t: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)) -> Self

Converts to this type from the input type.
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> From<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)> for RuntimeValue

Source§

fn from(t: (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)) -> Self

Converts to this type from the input type.
Source§

impl<T0> From<(T0,)> for RuntimeValue
where T0: Into<RuntimeValue>,

Source§

fn from(t: (T0,)) -> Self

Converts to this type from the input type.
Source§

impl From<RuntimeValue> for Value

Source§

fn from(v: RuntimeValue) -> Self

Converts to this type from the input type.
Source§

impl From<String> for RuntimeValue

Source§

fn from(s: String) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for RuntimeValue

Source§

fn from(v: JsonValue) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<u8>> for RuntimeValue

Source§

fn from(b: Vec<u8>) -> Self

Converts to this type from the input type.
Source§

impl<const N: usize> From<[u8; N]> for RuntimeValue

Source§

fn from(b: [u8; N]) -> Self

Converts to this type from the input type.
Source§

impl From<bool> for RuntimeValue

Source§

fn from(b: bool) -> Self

Converts to this type from the input type.
Source§

impl From<i8> for RuntimeValue

Source§

fn from(n: i8) -> Self

Converts to this type from the input type.
Source§

impl From<i16> for RuntimeValue

Source§

fn from(n: i16) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for RuntimeValue

Source§

fn from(n: i32) -> Self

Converts to this type from the input type.
Source§

impl From<i64> for RuntimeValue

Source§

fn from(n: i64) -> Self

Converts to this type from the input type.
Source§

impl From<i128> for RuntimeValue

Source§

fn from(n: i128) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for RuntimeValue

Source§

fn from(n: u8) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for RuntimeValue

Source§

fn from(n: u16) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for RuntimeValue

Source§

fn from(n: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for RuntimeValue

Source§

fn from(n: u64) -> Self

Converts to this type from the input type.
Source§

impl From<u128> for RuntimeValue

Source§

fn from(n: u128) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for RuntimeValue

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for RuntimeValue

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for RuntimeValue

Source§

impl<const N: usize> TryFrom<RuntimeValue> for [u8; N]

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RuntimeValue> for Vec<u8>

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T0> TryFrom<RuntimeValue> for (T0,)

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T0, T1> TryFrom<RuntimeValue> for (T0, T1)

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T0, T1, T2> TryFrom<RuntimeValue> for (T0, T1, T2)

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T0, T1, T2, T3> TryFrom<RuntimeValue> for (T0, T1, T2, T3)

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T0, T1, T2, T3, T4> TryFrom<RuntimeValue> for (T0, T1, T2, T3, T4)

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T0, T1, T2, T3, T4, T5> TryFrom<RuntimeValue> for (T0, T1, T2, T3, T4, T5)

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T0, T1, T2, T3, T4, T5, T6> TryFrom<RuntimeValue> for (T0, T1, T2, T3, T4, T5, T6)

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7> TryFrom<RuntimeValue> for (T0, T1, T2, T3, T4, T5, T6, T7)

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> TryFrom<RuntimeValue> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> TryFrom<RuntimeValue> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> TryFrom<RuntimeValue> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> TryFrom<RuntimeValue> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RuntimeValue> for ()

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RuntimeValue> for bool

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RuntimeValue> for u8

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RuntimeValue> for u16

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RuntimeValue> for u32

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RuntimeValue> for u64

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RuntimeValue> for u128

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RuntimeValue> for i128

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RuntimeValue> for String

Source§

type Error = ValueProjectionError

The type returned in the event of a conversion error.
Source§

fn try_from(v: RuntimeValue) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl Forget for RuntimeValue

§

impl Freeze for RuntimeValue

§

impl Move for RuntimeValue

§

impl RefUnwindSafe for RuntimeValue

§

impl Send for RuntimeValue
where RawVecInner: Send, NodeRef<Owned, String, RuntimeValue, LeafOrInternal>: Send, BoxRaw<(String, RuntimeValue)>: Send,

§

impl Sync for RuntimeValue
where RawVecInner: Sync, NodeRef<Owned, String, RuntimeValue, LeafOrInternal>: Sync, BoxRaw<(String, RuntimeValue)>: Sync,

§

impl Unpin for RuntimeValue
where *const u8 is !null: Unpin, *const LeafNode<String, RuntimeValue> is !null: Unpin, Box<(String, RuntimeValue)>: Unpin,

§

impl UnsafeUnpin for RuntimeValue

§

impl UnwindSafe for RuntimeValue

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.