pub enum Value {
Show 17 variants
Null,
Bool(bool),
Int(i64),
Uint(u64),
Double(f64),
String(StringValue),
Bytes(BytesValue),
Struct(()),
Duration(Duration),
Timestamp(Timestamp),
List(ListValue),
Map(MapValue),
Unknown(()),
Type(ValueType),
Error(Error),
Opaque(OpaqueValue),
Optional(OptionalValue),
}
Expand description
Main CEL value type.
Value
is the core value type of the CEL expression system, supporting all data types
defined by the CEL specification. Each variant corresponds to a CEL basic type or composite type.
§CEL Type Mapping
Null
→ CEL nullBool
→ CEL boolInt
→ CEL int (64-bit signed integer)Uint
→ CEL uint (64-bit unsigned integer)Double
→ CEL double (64-bit floating point)String
→ CEL stringBytes
→ CEL bytesDuration
→ CEL duration (Protocol Buffers Duration)Timestamp
→ CEL timestamp (Protocol Buffers Timestamp)List
→ CEL listMap
→ CEL mapType
→ CEL type (type value)Error
→ CEL errorOpaque
→ Opaque custom typesOptional
→ Optional value type
§Examples
use cel_cxx::Value;
// Basic types
let null_val = Value::Null;
let bool_val = Value::Bool(true);
let int_val = Value::Int(-42);
let uint_val = Value::Uint(42u64);
let double_val = Value::Double(3.14);
let string_val = Value::String("hello".to_string().into());
let bytes_val = Value::Bytes(vec![1, 2, 3].into());
// Time types
let duration = Value::Duration(chrono::Duration::seconds(30));
let timestamp = Value::Timestamp(chrono::Utc::now());
// Container types
let list = Value::List(vec![Value::Int(1), Value::Int(2)]);
Variants§
Null
Null value
Bool(bool)
Boolean value
Int(i64)
Signed 64-bit integer
Uint(u64)
Unsigned 64-bit integer
Double(f64)
64-bit floating point number
String(StringValue)
UTF-8 string
Bytes(BytesValue)
Byte array
Struct(())
Struct (not yet implemented)
Duration(Duration)
Duration (Protocol Buffers Duration)
Timestamp(Timestamp)
Timestamp (Protocol Buffers Timestamp)
List(ListValue)
List of values
Map(MapValue)
Key-value map
Unknown(())
Unknown type (not yet implemented)
Type(ValueType)
CEL type value
Error(Error)
Error value
Opaque(OpaqueValue)
Opaque custom type
Optional(OptionalValue)
Optional value type
Implementations§
Source§impl Value
impl Value
Sourcepub fn value_type(&self) -> ValueType
pub fn value_type(&self) -> ValueType
Returns the concrete type of this value.
Returns detailed ValueType
information including generic parameters.
For container types (List, Map), infers element or key-value types.
§Type Inference Rules
- List: Returns specific
List<T>
if all elements have the same type; otherwiseList<dyn>
- Map: Infers key and value types; uses
dyn
types if inconsistent - Optional: Infers type from contained value; uses
Optional<dyn>
for empty values
§Examples
use cel_cxx::{Value, ValueType, ListType};
let val = Value::String("hello".to_string().into());
assert_eq!(val.value_type(), ValueType::String);
// Homogeneous list
let list = Value::List(vec![Value::Int(1), Value::Int(2)]);
assert_eq!(list.value_type(), ValueType::List(ListType::new(ValueType::Int)));
// Heterogeneous list
let mixed_list = Value::List(vec![Value::Int(1), Value::String("hello".to_string().into())]);
assert_eq!(mixed_list.value_type(), ValueType::List(ListType::new(ValueType::Dyn)));
Sourcepub fn is_duration(&self) -> bool
pub fn is_duration(&self) -> bool
Returns true if this value is a duration value.
Sourcepub fn is_timestamp(&self) -> bool
pub fn is_timestamp(&self) -> bool
Returns true if this value is a timestamp value.
Sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if this value is an unknown value.
Sourcepub fn is_optional(&self) -> bool
pub fn is_optional(&self) -> bool
Returns true if this value is an optional value.
Sourcepub fn as_bool(&self) -> Option<&bool>
pub fn as_bool(&self) -> Option<&bool>
Returns the boolean value if this value is a boolean value.
Sourcepub fn as_int(&self) -> Option<&i64>
pub fn as_int(&self) -> Option<&i64>
Returns the signed integer value if this value is a signed integer value.
Sourcepub fn as_uint(&self) -> Option<&u64>
pub fn as_uint(&self) -> Option<&u64>
Returns the unsigned integer value if this value is an unsigned integer value.
Sourcepub fn as_double(&self) -> Option<&f64>
pub fn as_double(&self) -> Option<&f64>
Returns the double value if this value is a double value.
Sourcepub fn as_string(&self) -> Option<&StringValue>
pub fn as_string(&self) -> Option<&StringValue>
Returns the string value if this value is a string value.
Sourcepub fn as_bytes(&self) -> Option<&BytesValue>
pub fn as_bytes(&self) -> Option<&BytesValue>
Returns the byte array value if this value is a byte array value.
Sourcepub fn as_struct(&self) -> Option<&()>
pub fn as_struct(&self) -> Option<&()>
Returns the struct value if this value is a struct value.
Sourcepub fn as_duration(&self) -> Option<&Duration>
pub fn as_duration(&self) -> Option<&Duration>
Returns the duration value if this value is a duration value.
Sourcepub fn as_timestamp(&self) -> Option<&Timestamp>
pub fn as_timestamp(&self) -> Option<&Timestamp>
Returns the timestamp value if this value is a timestamp value.
Sourcepub fn as_list(&self) -> Option<&ListValue>
pub fn as_list(&self) -> Option<&ListValue>
Returns the list value if this value is a list value.
Sourcepub fn as_unknown(&self) -> Option<&()>
pub fn as_unknown(&self) -> Option<&()>
Returns the unknown value if this value is an unknown value.
Sourcepub fn as_type(&self) -> Option<&ValueType>
pub fn as_type(&self) -> Option<&ValueType>
Returns the type value if this value is a type value.
Sourcepub fn as_error(&self) -> Option<&Error>
pub fn as_error(&self) -> Option<&Error>
Returns the error value if this value is an error value.
Sourcepub fn as_opaque(&self) -> Option<&OpaqueValue>
pub fn as_opaque(&self) -> Option<&OpaqueValue>
Returns the opaque value if this value is an opaque value.
Sourcepub fn as_optional(&self) -> Option<&OptionalValue>
pub fn as_optional(&self) -> Option<&OptionalValue>
Returns the optional value if this value is an optional value.
Sourcepub fn as_bool_mut(&mut self) -> Option<&mut bool>
pub fn as_bool_mut(&mut self) -> Option<&mut bool>
Returns a mutable reference to the boolean value if this value is a boolean value.
Sourcepub fn as_int_mut(&mut self) -> Option<&mut i64>
pub fn as_int_mut(&mut self) -> Option<&mut i64>
Returns a mutable reference to the signed integer value if this value is a signed integer value.
Sourcepub fn as_uint_mut(&mut self) -> Option<&mut u64>
pub fn as_uint_mut(&mut self) -> Option<&mut u64>
Returns a mutable reference to the unsigned integer value if this value is an unsigned integer value.
Sourcepub fn as_double_mut(&mut self) -> Option<&mut f64>
pub fn as_double_mut(&mut self) -> Option<&mut f64>
Returns a mutable reference to the double value if this value is a double value.
Sourcepub fn as_string_mut(&mut self) -> Option<&mut StringValue>
pub fn as_string_mut(&mut self) -> Option<&mut StringValue>
Returns a mutable reference to the string value if this value is a string value.
Sourcepub fn as_bytes_mut(&mut self) -> Option<&mut BytesValue>
pub fn as_bytes_mut(&mut self) -> Option<&mut BytesValue>
Returns a mutable reference to the byte array value if this value is a byte array value.
Sourcepub fn as_struct_mut(&mut self) -> Option<&mut ()>
pub fn as_struct_mut(&mut self) -> Option<&mut ()>
Returns a mutable reference to the struct value if this value is a struct value.
Sourcepub fn as_duration_mut(&mut self) -> Option<&mut Duration>
pub fn as_duration_mut(&mut self) -> Option<&mut Duration>
Returns a mutable reference to the duration value if this value is a duration value.
Sourcepub fn as_timestamp_mut(&mut self) -> Option<&mut Timestamp>
pub fn as_timestamp_mut(&mut self) -> Option<&mut Timestamp>
Returns a mutable reference to the timestamp value if this value is a timestamp value.
Sourcepub fn as_list_mut(&mut self) -> Option<&mut ListValue>
pub fn as_list_mut(&mut self) -> Option<&mut ListValue>
Returns a mutable reference to the list value if this value is a list value.
Sourcepub fn as_map_mut(&mut self) -> Option<&mut MapValue>
pub fn as_map_mut(&mut self) -> Option<&mut MapValue>
Returns a mutable reference to the map value if this value is a map value.
Sourcepub fn as_unknown_mut(&mut self) -> Option<&mut ()>
pub fn as_unknown_mut(&mut self) -> Option<&mut ()>
Returns a mutable reference to the unknown value if this value is an unknown value.
Sourcepub fn as_type_mut(&mut self) -> Option<&mut ValueType>
pub fn as_type_mut(&mut self) -> Option<&mut ValueType>
Returns a mutable reference to the type value if this value is a type value.
Sourcepub fn as_error_mut(&mut self) -> Option<&mut Error>
pub fn as_error_mut(&mut self) -> Option<&mut Error>
Returns a mutable reference to the error value if this value is an error value.
Sourcepub fn as_opaque_mut(&mut self) -> Option<&mut OpaqueValue>
pub fn as_opaque_mut(&mut self) -> Option<&mut OpaqueValue>
Returns a mutable reference to the opaque value if this value is an opaque value.
Sourcepub fn as_optional_mut(&mut self) -> Option<&mut OptionalValue>
pub fn as_optional_mut(&mut self) -> Option<&mut OptionalValue>
Returns a mutable reference to the optional value if this value is an optional value.
Sourcepub fn into_double(self) -> Option<f64>
pub fn into_double(self) -> Option<f64>
Converts the value to a double value.
Sourcepub fn into_string(self) -> Option<StringValue>
pub fn into_string(self) -> Option<StringValue>
Converts the value to a string value.
Sourcepub fn into_bytes(self) -> Option<BytesValue>
pub fn into_bytes(self) -> Option<BytesValue>
Converts the value to a byte array value.
Sourcepub fn into_struct(self) -> Option<()>
pub fn into_struct(self) -> Option<()>
Converts the value to a struct value.
Sourcepub fn into_duration(self) -> Option<Duration>
pub fn into_duration(self) -> Option<Duration>
Converts the value to a duration value.
Sourcepub fn into_timestamp(self) -> Option<Timestamp>
pub fn into_timestamp(self) -> Option<Timestamp>
Converts the value to a timestamp value.
Sourcepub fn into_unknown(self) -> Option<()>
pub fn into_unknown(self) -> Option<()>
Converts the value to an unknown value.
Sourcepub fn into_error(self) -> Option<Error>
pub fn into_error(self) -> Option<Error>
Converts the value to an error value.
Sourcepub fn into_opaque(self) -> Option<OpaqueValue>
pub fn into_opaque(self) -> Option<OpaqueValue>
Converts the value to an opaque value.
Sourcepub fn into_optional(self) -> Option<OptionalValue>
pub fn into_optional(self) -> Option<OptionalValue>
Converts the value to an optional value.
Sourcepub fn unwrap_null(self)
pub fn unwrap_null(self)
Converts the value to a null value and panics if the value is not a null value.
Sourcepub fn unwrap_bool(self) -> bool
pub fn unwrap_bool(self) -> bool
Converts the value to a boolean value and panics if the value is not a boolean value.
Sourcepub fn unwrap_int(self) -> i64
pub fn unwrap_int(self) -> i64
Converts the value to a signed integer value and panics if the value is not a signed integer value.
Sourcepub fn unwrap_uint(self) -> u64
pub fn unwrap_uint(self) -> u64
Converts the value to an unsigned integer value and panics if the value is not an unsigned integer value.
Sourcepub fn unwrap_double(self) -> f64
pub fn unwrap_double(self) -> f64
Converts the value to a double value and panics if the value is not a double value.
Sourcepub fn unwrap_string(self) -> StringValue
pub fn unwrap_string(self) -> StringValue
Converts the value to a string value and panics if the value is not a string value.
Sourcepub fn unwrap_bytes(self) -> BytesValue
pub fn unwrap_bytes(self) -> BytesValue
Converts the value to a byte array value and panics if the value is not a byte array value.
Sourcepub fn unwrap_struct(self)
pub fn unwrap_struct(self)
Converts the value to a struct value and panics if the value is not a struct value.
Sourcepub fn unwrap_duration(self) -> Duration
pub fn unwrap_duration(self) -> Duration
Converts the value to a duration value and panics if the value is not a duration value.
Sourcepub fn unwrap_timestamp(self) -> Timestamp
pub fn unwrap_timestamp(self) -> Timestamp
Converts the value to a timestamp value and panics if the value is not a timestamp value.
Sourcepub fn unwrap_list(self) -> ListValue
pub fn unwrap_list(self) -> ListValue
Converts the value to a list value and panics if the value is not a list value.
Sourcepub fn unwrap_map(self) -> MapValue
pub fn unwrap_map(self) -> MapValue
Converts the value to a map value and panics if the value is not a map value.
Sourcepub fn unwrap_unknown(self)
pub fn unwrap_unknown(self)
Converts the value to an unknown value and panics if the value is not an unknown value.
Sourcepub fn unwrap_type(self) -> ValueType
pub fn unwrap_type(self) -> ValueType
Converts the value to a type value and panics if the value is not a type value.
Sourcepub fn unwrap_error(self) -> Error
pub fn unwrap_error(self) -> Error
Converts the value to an error value and panics if the value is not an error value.
Sourcepub fn unwrap_opaque(self) -> OpaqueValue
pub fn unwrap_opaque(self) -> OpaqueValue
Converts the value to an opaque value and panics if the value is not an opaque value.
Sourcepub fn unwrap_optional(self) -> OptionalValue
pub fn unwrap_optional(self) -> OptionalValue
Converts the value to an optional value and panics if the value is not an optional value.
Sourcepub fn expect_null(self, msg: &str)
pub fn expect_null(self, msg: &str)
Converts the value to a null value and panics if the value is not a null value.
Sourcepub fn expect_bool(self, msg: &str) -> bool
pub fn expect_bool(self, msg: &str) -> bool
Converts the value to a boolean value and panics if the value is not a boolean value.
Sourcepub fn expect_int(self, msg: &str) -> i64
pub fn expect_int(self, msg: &str) -> i64
Converts the value to a signed integer value and panics if the value is not a signed integer value.
Sourcepub fn expect_uint(self, msg: &str) -> u64
pub fn expect_uint(self, msg: &str) -> u64
Converts the value to an unsigned integer value and panics if the value is not an unsigned integer value.
Sourcepub fn expect_double(self, msg: &str) -> f64
pub fn expect_double(self, msg: &str) -> f64
Converts the value to a double value and panics if the value is not a double value.
Sourcepub fn expect_string(self, msg: &str) -> StringValue
pub fn expect_string(self, msg: &str) -> StringValue
Converts the value to a string value and panics if the value is not a string value.
Sourcepub fn expect_bytes(self, msg: &str) -> BytesValue
pub fn expect_bytes(self, msg: &str) -> BytesValue
Converts the value to a byte array value and panics if the value is not a byte array value.
Sourcepub fn expect_struct(self, msg: &str)
pub fn expect_struct(self, msg: &str)
Converts the value to a struct value and panics if the value is not a struct value.
Sourcepub fn expect_duration(self, msg: &str) -> Duration
pub fn expect_duration(self, msg: &str) -> Duration
Converts the value to a duration value and panics if the value is not a duration value.
Sourcepub fn expect_timestamp(self, msg: &str) -> Timestamp
pub fn expect_timestamp(self, msg: &str) -> Timestamp
Converts the value to a timestamp value and panics if the value is not a timestamp value.
Sourcepub fn expect_list(self, msg: &str) -> ListValue
pub fn expect_list(self, msg: &str) -> ListValue
Converts the value to a list value and panics if the value is not a list value.
Sourcepub fn expect_map(self, msg: &str) -> MapValue
pub fn expect_map(self, msg: &str) -> MapValue
Converts the value to a map value and panics if the value is not a map value.
Sourcepub fn expect_unknown(self, msg: &str)
pub fn expect_unknown(self, msg: &str)
Converts the value to an unknown value and panics if the value is not an unknown value.
Sourcepub fn expect_type(self, msg: &str) -> ValueType
pub fn expect_type(self, msg: &str) -> ValueType
Converts the value to a type value and panics if the value is not a type value.
Sourcepub fn expect_error(self, msg: &str) -> Error
pub fn expect_error(self, msg: &str) -> Error
Converts the value to an error value and panics if the value is not an error value.
Sourcepub fn expect_opaque(self, msg: &str) -> OpaqueValue
pub fn expect_opaque(self, msg: &str) -> OpaqueValue
Converts the value to an opaque value and panics if the value is not an opaque value.
Sourcepub fn expect_optional(self, msg: &str) -> OptionalValue
pub fn expect_optional(self, msg: &str) -> OptionalValue
Converts the value to an optional value and panics if the value is not an optional value.
Trait Implementations§
Source§impl From<ArcSlice<[u8]>> for Value
impl From<ArcSlice<[u8]>> for Value
Source§fn from(value: BytesValue) -> Self
fn from(value: BytesValue) -> Self
Source§impl From<ArcSlice<str>> for Value
impl From<ArcSlice<str>> for Value
Source§fn from(value: StringValue) -> Self
fn from(value: StringValue) -> Self
Source§impl From<Box<dyn Opaque>> for Value
impl From<Box<dyn Opaque>> for Value
Source§fn from(value: OpaqueValue) -> Self
fn from(value: OpaqueValue) -> Self
Source§impl<K: IntoMapKey, V: IntoValue> From<LinkedList<(K, V)>> for Value
impl<K: IntoMapKey, V: IntoValue> From<LinkedList<(K, V)>> for Value
Source§fn from(value: LinkedList<(K, V)>) -> Self
fn from(value: LinkedList<(K, V)>) -> Self
Source§impl<T: IntoValue> From<LinkedList<T>> for Value
impl<T: IntoValue> From<LinkedList<T>> for Value
Source§fn from(value: LinkedList<T>) -> Self
fn from(value: LinkedList<T>) -> Self
Source§impl From<SystemTime> for Value
impl From<SystemTime> for Value
Source§fn from(value: SystemTime) -> Self
fn from(value: SystemTime) -> Self
Source§impl<'a> TryFrom<&'a Value> for &'a BytesValue
impl<'a> TryFrom<&'a Value> for &'a BytesValue
Source§impl<'a> TryFrom<&'a Value> for &'a StringValue
impl<'a> TryFrom<&'a Value> for &'a StringValue
Source§impl TryFrom<&Value> for BytesValue
impl TryFrom<&Value> for BytesValue
Source§impl TryFrom<&Value> for StringValue
impl TryFrom<&Value> for StringValue
Source§impl<'a, K, V> TryFrom<&'a Value> for BTreeMap<K, V>where
K: TryFrom<&'a MapKey, Error = FromMapKeyError> + TypedMapKey + Eq + Hash + Ord,
V: TryFrom<&'a Value, Error = FromValueError> + TypedValue,
impl<'a, K, V> TryFrom<&'a Value> for BTreeMap<K, V>where
K: TryFrom<&'a MapKey, Error = FromMapKeyError> + TypedMapKey + Eq + Hash + Ord,
V: TryFrom<&'a Value, Error = FromValueError> + TypedValue,
Source§impl<'a, K, V> TryFrom<&'a Value> for HashMap<K, V>where
K: TryFrom<&'a MapKey, Error = FromMapKeyError> + TypedMapKey + Eq + Hash + Ord,
V: TryFrom<&'a Value, Error = FromValueError> + TypedValue,
impl<'a, K, V> TryFrom<&'a Value> for HashMap<K, V>where
K: TryFrom<&'a MapKey, Error = FromMapKeyError> + TypedMapKey + Eq + Hash + Ord,
V: TryFrom<&'a Value, Error = FromValueError> + TypedValue,
Source§impl<'a, K, V> TryFrom<&'a Value> for LinkedList<(K, V)>where
K: TryFrom<&'a MapKey, Error = FromMapKeyError> + TypedMapKey + Eq + Hash + Ord,
V: TryFrom<&'a Value, Error = FromValueError> + TypedValue,
impl<'a, K, V> TryFrom<&'a Value> for LinkedList<(K, V)>where
K: TryFrom<&'a MapKey, Error = FromMapKeyError> + TypedMapKey + Eq + Hash + Ord,
V: TryFrom<&'a Value, Error = FromValueError> + TypedValue,
Source§impl<'a, T: TryFrom<&'a Value, Error = FromValueError> + TypedValue> TryFrom<&'a Value> for LinkedList<T>
impl<'a, T: TryFrom<&'a Value, Error = FromValueError> + TypedValue> TryFrom<&'a Value> for LinkedList<T>
Source§impl<'a, T: TryFrom<&'a Value, Error = FromValueError> + TypedValue> TryFrom<&'a Value> for Option<T>
impl<'a, T: TryFrom<&'a Value, Error = FromValueError> + TypedValue> TryFrom<&'a Value> for Option<T>
Source§impl<'a, T: TryFrom<&'a Value, Error = FromValueError> + TypedValue> TryFrom<&'a Value> for Optional<T>
impl<'a, T: TryFrom<&'a Value, Error = FromValueError> + TypedValue> TryFrom<&'a Value> for Optional<T>
Source§impl TryFrom<&Value> for SystemTime
impl TryFrom<&Value> for SystemTime
Source§impl<'a, K, V> TryFrom<&'a Value> for Vec<(K, V)>where
K: TryFrom<&'a MapKey, Error = FromMapKeyError> + TypedMapKey + Eq + Hash + Ord,
V: TryFrom<&'a Value, Error = FromValueError> + TypedValue,
impl<'a, K, V> TryFrom<&'a Value> for Vec<(K, V)>where
K: TryFrom<&'a MapKey, Error = FromMapKeyError> + TypedMapKey + Eq + Hash + Ord,
V: TryFrom<&'a Value, Error = FromValueError> + TypedValue,
Source§impl<'a, T: TryFrom<&'a Value, Error = FromValueError> + TypedValue> TryFrom<&'a Value> for Vec<T>
impl<'a, T: TryFrom<&'a Value, Error = FromValueError> + TypedValue> TryFrom<&'a Value> for Vec<T>
Source§impl<'a, K, V> TryFrom<&'a Value> for VecDeque<(K, V)>where
K: TryFrom<&'a MapKey, Error = FromMapKeyError> + TypedMapKey + Eq + Hash + Ord,
V: TryFrom<&'a Value, Error = FromValueError> + TypedValue,
impl<'a, K, V> TryFrom<&'a Value> for VecDeque<(K, V)>where
K: TryFrom<&'a MapKey, Error = FromMapKeyError> + TypedMapKey + Eq + Hash + Ord,
V: TryFrom<&'a Value, Error = FromValueError> + TypedValue,
Source§impl<'a, T: TryFrom<&'a Value, Error = FromValueError> + TypedValue> TryFrom<&'a Value> for VecDeque<T>
impl<'a, T: TryFrom<&'a Value, Error = FromValueError> + TypedValue> TryFrom<&'a Value> for VecDeque<T>
Source§impl TryFrom<Value> for BytesValue
impl TryFrom<Value> for BytesValue
Source§impl TryFrom<Value> for StringValue
impl TryFrom<Value> for StringValue
Source§impl<K, V> TryFrom<Value> for BTreeMap<K, V>where
K: TryFrom<MapKey, Error = FromMapKeyError> + TypedMapKey + Eq + Hash + Ord,
V: TryFrom<Value, Error = FromValueError> + TypedValue,
impl<K, V> TryFrom<Value> for BTreeMap<K, V>where
K: TryFrom<MapKey, Error = FromMapKeyError> + TypedMapKey + Eq + Hash + Ord,
V: TryFrom<Value, Error = FromValueError> + TypedValue,
Source§impl<K, V> TryFrom<Value> for HashMap<K, V>where
K: TryFrom<MapKey, Error = FromMapKeyError> + TypedMapKey + Eq + Hash + Ord,
V: TryFrom<Value, Error = FromValueError> + TypedValue,
impl<K, V> TryFrom<Value> for HashMap<K, V>where
K: TryFrom<MapKey, Error = FromMapKeyError> + TypedMapKey + Eq + Hash + Ord,
V: TryFrom<Value, Error = FromValueError> + TypedValue,
Source§impl<K, V> TryFrom<Value> for LinkedList<(K, V)>where
K: TryFrom<MapKey, Error = FromMapKeyError> + TypedMapKey + Eq + Hash + Ord,
V: TryFrom<Value, Error = FromValueError> + TypedValue,
impl<K, V> TryFrom<Value> for LinkedList<(K, V)>where
K: TryFrom<MapKey, Error = FromMapKeyError> + TypedMapKey + Eq + Hash + Ord,
V: TryFrom<Value, Error = FromValueError> + TypedValue,
Source§impl<T: TypedValue + TryFrom<Value, Error = FromValueError>> TryFrom<Value> for LinkedList<T>
impl<T: TypedValue + TryFrom<Value, Error = FromValueError>> TryFrom<Value> for LinkedList<T>
Source§impl<T: TryFrom<Value, Error = FromValueError> + TypedValue> TryFrom<Value> for Option<T>
impl<T: TryFrom<Value, Error = FromValueError> + TypedValue> TryFrom<Value> for Option<T>
Source§impl<T: TryFrom<Value, Error = FromValueError> + TypedValue> TryFrom<Value> for Optional<T>
impl<T: TryFrom<Value, Error = FromValueError> + TypedValue> TryFrom<Value> for Optional<T>
Source§impl TryFrom<Value> for SystemTime
impl TryFrom<Value> for SystemTime
Source§impl<K, V> TryFrom<Value> for Vec<(K, V)>where
K: TryFrom<MapKey, Error = FromMapKeyError> + TypedMapKey + Eq + Hash + Ord,
V: TryFrom<Value, Error = FromValueError> + TypedValue,
impl<K, V> TryFrom<Value> for Vec<(K, V)>where
K: TryFrom<MapKey, Error = FromMapKeyError> + TypedMapKey + Eq + Hash + Ord,
V: TryFrom<Value, Error = FromValueError> + TypedValue,
Source§impl<T: TypedValue + TryFrom<Value, Error = FromValueError>> TryFrom<Value> for Vec<T>
impl<T: TypedValue + TryFrom<Value, Error = FromValueError>> TryFrom<Value> for Vec<T>
Source§impl<K, V> TryFrom<Value> for VecDeque<(K, V)>where
K: TryFrom<MapKey, Error = FromMapKeyError> + TypedMapKey + Eq + Hash + Ord,
V: TryFrom<Value, Error = FromValueError> + TypedValue,
impl<K, V> TryFrom<Value> for VecDeque<(K, V)>where
K: TryFrom<MapKey, Error = FromMapKeyError> + TypedMapKey + Eq + Hash + Ord,
V: TryFrom<Value, Error = FromValueError> + TypedValue,
Source§impl<T: TypedValue + TryFrom<Value, Error = FromValueError>> TryFrom<Value> for VecDeque<T>
impl<T: TypedValue + TryFrom<Value, Error = FromValueError>> TryFrom<Value> for VecDeque<T>
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl !RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl !UnwindSafe for Value
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more