pub struct OwnedValue(/* private fields */);
Expand description
Owned Value
Methods from Deref<Target = Value<'static>>§
sourcepub fn to_owned(&self) -> OwnedValue
pub fn to_owned(&self) -> OwnedValue
Create an owned version of self
.
Ideally, we should implement std::borrow::ToOwned
trait for Value
, but that’s
implemented generically for us through impl<T: Clone> ToOwned for T
and it’s not what we
need/want.
sourcepub fn value_signature(&self) -> Signature<'_>
pub fn value_signature(&self) -> Signature<'_>
Get the signature of the enclosed value.
sourcepub fn downcast_ref<T>(&'a self) -> Option<&'a T>
pub fn downcast_ref<T>(&'a self) -> Option<&'a T>
Try to get a reference to the underlying type T
.
Same as downcast
except it doesn’t consume self
and get a reference to the underlying
value.
§Examples
use std::convert::TryFrom;
use zvariant::{Result, Value};
fn value_vec_to_type_vec<'a, T>(values: &'a Vec<Value<'a>>) -> Result<Vec<&'a T>>
where
&'a T: TryFrom<&'a Value<'a>>,
{
let mut res = vec![];
for value in values.into_iter() {
res.push(value.downcast_ref().unwrap());
}
Ok(res)
}
// Let's try u32 values first
let v = vec![Value::U32(42), Value::U32(43)];
let v = value_vec_to_type_vec::<u32>(&v).unwrap();
assert_eq!(*v[0], 42);
assert_eq!(*v[1], 43);
// Now try Value values
let v = vec![Value::new(Value::U32(42)), Value::new(Value::U32(43))];
let v = value_vec_to_type_vec::<Value>(&v).unwrap();
assert_eq!(*v[0], Value::U32(42));
assert_eq!(*v[1], Value::U32(43));
Trait Implementations§
source§impl Clone for OwnedValue
impl Clone for OwnedValue
source§fn clone(&self) -> OwnedValue
fn clone(&self) -> OwnedValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OwnedValue
impl Debug for OwnedValue
source§impl Deref for OwnedValue
impl Deref for OwnedValue
source§impl<'de> Deserialize<'de> for OwnedValue
impl<'de> Deserialize<'de> for OwnedValue
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'o> From<&'o OwnedValue> for Value<'o>
impl<'o> From<&'o OwnedValue> for Value<'o>
source§fn from(v: &'o OwnedValue) -> Value<'o>
fn from(v: &'o OwnedValue) -> Value<'o>
Converts to this type from the input type.
source§impl<'a> From<&Value<'a>> for OwnedValue
impl<'a> From<&Value<'a>> for OwnedValue
source§impl<'a> From<Array<'a>> for OwnedValue
impl<'a> From<Array<'a>> for OwnedValue
source§impl<'a> From<Dict<'a, 'a>> for OwnedValue
impl<'a> From<Dict<'a, 'a>> for OwnedValue
source§impl<'a> From<Fd> for OwnedValue
impl<'a> From<Fd> for OwnedValue
source§impl<K, V, H> From<HashMap<K, V, H>> for OwnedValue
impl<K, V, H> From<HashMap<K, V, H>> for OwnedValue
source§impl<'a> From<ObjectPath<'a>> for OwnedValue
impl<'a> From<ObjectPath<'a>> for OwnedValue
source§fn from(v: ObjectPath<'a>) -> Self
fn from(v: ObjectPath<'a>) -> Self
Converts to this type from the input type.
source§impl From<OwnedValue> for Value<'static>
impl From<OwnedValue> for Value<'static>
source§fn from(v: OwnedValue) -> Value<'static>
fn from(v: OwnedValue) -> Value<'static>
Converts to this type from the input type.
source§impl<'a> From<Signature<'a>> for OwnedValue
impl<'a> From<Signature<'a>> for OwnedValue
source§impl<'a> From<Str<'a>> for OwnedValue
impl<'a> From<Str<'a>> for OwnedValue
source§impl<'a> From<Structure<'a>> for OwnedValue
impl<'a> From<Structure<'a>> for OwnedValue
source§impl<'a> From<Value<'a>> for OwnedValue
impl<'a> From<Value<'a>> for OwnedValue
source§impl<'a> From<bool> for OwnedValue
impl<'a> From<bool> for OwnedValue
source§impl<'a> From<f64> for OwnedValue
impl<'a> From<f64> for OwnedValue
source§impl<'a> From<i16> for OwnedValue
impl<'a> From<i16> for OwnedValue
source§impl<'a> From<i32> for OwnedValue
impl<'a> From<i32> for OwnedValue
source§impl<'a> From<i64> for OwnedValue
impl<'a> From<i64> for OwnedValue
source§impl<'a> From<u16> for OwnedValue
impl<'a> From<u16> for OwnedValue
source§impl<'a> From<u32> for OwnedValue
impl<'a> From<u32> for OwnedValue
source§impl<'a> From<u64> for OwnedValue
impl<'a> From<u64> for OwnedValue
source§impl<'a> From<u8> for OwnedValue
impl<'a> From<u8> for OwnedValue
source§impl PartialEq for OwnedValue
impl PartialEq for OwnedValue
source§impl Serialize for OwnedValue
impl Serialize for OwnedValue
source§impl<'a> TryFrom<&'a OwnedValue> for &'a Array<'a>
impl<'a> TryFrom<&'a OwnedValue> for &'a Array<'a>
source§impl<'a> TryFrom<&'a OwnedValue> for &'a Dict<'a, 'a>
impl<'a> TryFrom<&'a OwnedValue> for &'a Dict<'a, 'a>
source§impl<'a> TryFrom<&'a OwnedValue> for &'a ObjectPath<'a>
impl<'a> TryFrom<&'a OwnedValue> for &'a ObjectPath<'a>
source§impl<'a> TryFrom<&'a OwnedValue> for &'a Signature<'a>
impl<'a> TryFrom<&'a OwnedValue> for &'a Signature<'a>
source§impl<'a> TryFrom<&'a OwnedValue> for &'a Str<'a>
impl<'a> TryFrom<&'a OwnedValue> for &'a Str<'a>
source§impl<'a> TryFrom<&'a OwnedValue> for &'a Structure<'a>
impl<'a> TryFrom<&'a OwnedValue> for &'a Structure<'a>
source§impl<'a> TryFrom<&'a OwnedValue> for &'a str
impl<'a> TryFrom<&'a OwnedValue> for &'a str
source§impl<'a> TryFrom<&'a OwnedValue> for Fd
impl<'a> TryFrom<&'a OwnedValue> for Fd
source§impl<'a> TryFrom<&'a OwnedValue> for bool
impl<'a> TryFrom<&'a OwnedValue> for bool
source§impl<'a> TryFrom<&'a OwnedValue> for f64
impl<'a> TryFrom<&'a OwnedValue> for f64
source§impl<'a> TryFrom<&'a OwnedValue> for i16
impl<'a> TryFrom<&'a OwnedValue> for i16
source§impl<'a> TryFrom<&'a OwnedValue> for i32
impl<'a> TryFrom<&'a OwnedValue> for i32
source§impl<'a> TryFrom<&'a OwnedValue> for i64
impl<'a> TryFrom<&'a OwnedValue> for i64
source§impl<'a> TryFrom<&'a OwnedValue> for u16
impl<'a> TryFrom<&'a OwnedValue> for u16
source§impl<'a> TryFrom<&'a OwnedValue> for u32
impl<'a> TryFrom<&'a OwnedValue> for u32
source§impl<'a> TryFrom<&'a OwnedValue> for u64
impl<'a> TryFrom<&'a OwnedValue> for u64
source§impl<'a> TryFrom<&'a OwnedValue> for u8
impl<'a> TryFrom<&'a OwnedValue> for u8
source§impl<E, T0> TryFrom<OwnedValue> for (T0,)
impl<E, T0> TryFrom<OwnedValue> for (T0,)
source§impl<E, T0, T1> TryFrom<OwnedValue> for (T0, T1)
impl<E, T0, T1> TryFrom<OwnedValue> for (T0, T1)
source§impl<E, T0, T1, T2> TryFrom<OwnedValue> for (T0, T1, T2)
impl<E, T0, T1, T2> TryFrom<OwnedValue> for (T0, T1, T2)
source§impl<E, T0, T1, T2, T3> TryFrom<OwnedValue> for (T0, T1, T2, T3)
impl<E, T0, T1, T2, T3> TryFrom<OwnedValue> for (T0, T1, T2, T3)
source§impl<E, T0, T1, T2, T3, T4> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4)
impl<E, T0, T1, T2, T3, T4> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4)
source§impl<E, T0, T1, T2, T3, T4, T5> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5)
impl<E, T0, T1, T2, T3, T4, T5> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5)
source§impl<E, T0, T1, T2, T3, T4, T5, T6> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5, T6)where
T0: TryFrom<Value<'static>, Error = E>,
T1: TryFrom<Value<'static>, Error = E>,
T2: TryFrom<Value<'static>, Error = E>,
T3: TryFrom<Value<'static>, Error = E>,
T4: TryFrom<Value<'static>, Error = E>,
T5: TryFrom<Value<'static>, Error = E>,
T6: TryFrom<Value<'static>, Error = E>,
Error: From<E>,
impl<E, T0, T1, T2, T3, T4, T5, T6> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5, T6)where
T0: TryFrom<Value<'static>, Error = E>,
T1: TryFrom<Value<'static>, Error = E>,
T2: TryFrom<Value<'static>, Error = E>,
T3: TryFrom<Value<'static>, Error = E>,
T4: TryFrom<Value<'static>, Error = E>,
T5: TryFrom<Value<'static>, Error = E>,
T6: TryFrom<Value<'static>, Error = E>,
Error: From<E>,
source§impl<E, T0, T1, T2, T3, T4, T5, T6, T7> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5, T6, T7)where
T0: TryFrom<Value<'static>, Error = E>,
T1: TryFrom<Value<'static>, Error = E>,
T2: TryFrom<Value<'static>, Error = E>,
T3: TryFrom<Value<'static>, Error = E>,
T4: TryFrom<Value<'static>, Error = E>,
T5: TryFrom<Value<'static>, Error = E>,
T6: TryFrom<Value<'static>, Error = E>,
T7: TryFrom<Value<'static>, Error = E>,
Error: From<E>,
impl<E, T0, T1, T2, T3, T4, T5, T6, T7> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5, T6, T7)where
T0: TryFrom<Value<'static>, Error = E>,
T1: TryFrom<Value<'static>, Error = E>,
T2: TryFrom<Value<'static>, Error = E>,
T3: TryFrom<Value<'static>, Error = E>,
T4: TryFrom<Value<'static>, Error = E>,
T5: TryFrom<Value<'static>, Error = E>,
T6: TryFrom<Value<'static>, Error = E>,
T7: TryFrom<Value<'static>, Error = E>,
Error: From<E>,
source§impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)where
T0: TryFrom<Value<'static>, Error = E>,
T1: TryFrom<Value<'static>, Error = E>,
T2: TryFrom<Value<'static>, Error = E>,
T3: TryFrom<Value<'static>, Error = E>,
T4: TryFrom<Value<'static>, Error = E>,
T5: TryFrom<Value<'static>, Error = E>,
T6: TryFrom<Value<'static>, Error = E>,
T7: TryFrom<Value<'static>, Error = E>,
T8: TryFrom<Value<'static>, Error = E>,
Error: From<E>,
impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)where
T0: TryFrom<Value<'static>, Error = E>,
T1: TryFrom<Value<'static>, Error = E>,
T2: TryFrom<Value<'static>, Error = E>,
T3: TryFrom<Value<'static>, Error = E>,
T4: TryFrom<Value<'static>, Error = E>,
T5: TryFrom<Value<'static>, Error = E>,
T6: TryFrom<Value<'static>, Error = E>,
T7: TryFrom<Value<'static>, Error = E>,
T8: TryFrom<Value<'static>, Error = E>,
Error: From<E>,
source§impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)where
T0: TryFrom<Value<'static>, Error = E>,
T1: TryFrom<Value<'static>, Error = E>,
T2: TryFrom<Value<'static>, Error = E>,
T3: TryFrom<Value<'static>, Error = E>,
T4: TryFrom<Value<'static>, Error = E>,
T5: TryFrom<Value<'static>, Error = E>,
T6: TryFrom<Value<'static>, Error = E>,
T7: TryFrom<Value<'static>, Error = E>,
T8: TryFrom<Value<'static>, Error = E>,
T9: TryFrom<Value<'static>, Error = E>,
Error: From<E>,
impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)where
T0: TryFrom<Value<'static>, Error = E>,
T1: TryFrom<Value<'static>, Error = E>,
T2: TryFrom<Value<'static>, Error = E>,
T3: TryFrom<Value<'static>, Error = E>,
T4: TryFrom<Value<'static>, Error = E>,
T5: TryFrom<Value<'static>, Error = E>,
T6: TryFrom<Value<'static>, Error = E>,
T7: TryFrom<Value<'static>, Error = E>,
T8: TryFrom<Value<'static>, Error = E>,
T9: TryFrom<Value<'static>, Error = E>,
Error: From<E>,
source§impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)where
T0: TryFrom<Value<'static>, Error = E>,
T1: TryFrom<Value<'static>, Error = E>,
T2: TryFrom<Value<'static>, Error = E>,
T3: TryFrom<Value<'static>, Error = E>,
T4: TryFrom<Value<'static>, Error = E>,
T5: TryFrom<Value<'static>, Error = E>,
T6: TryFrom<Value<'static>, Error = E>,
T7: TryFrom<Value<'static>, Error = E>,
T8: TryFrom<Value<'static>, Error = E>,
T9: TryFrom<Value<'static>, Error = E>,
T10: TryFrom<Value<'static>, Error = E>,
Error: From<E>,
impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)where
T0: TryFrom<Value<'static>, Error = E>,
T1: TryFrom<Value<'static>, Error = E>,
T2: TryFrom<Value<'static>, Error = E>,
T3: TryFrom<Value<'static>, Error = E>,
T4: TryFrom<Value<'static>, Error = E>,
T5: TryFrom<Value<'static>, Error = E>,
T6: TryFrom<Value<'static>, Error = E>,
T7: TryFrom<Value<'static>, Error = E>,
T8: TryFrom<Value<'static>, Error = E>,
T9: TryFrom<Value<'static>, Error = E>,
T10: TryFrom<Value<'static>, Error = E>,
Error: From<E>,
source§impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)where
T0: TryFrom<Value<'static>, Error = E>,
T1: TryFrom<Value<'static>, Error = E>,
T2: TryFrom<Value<'static>, Error = E>,
T3: TryFrom<Value<'static>, Error = E>,
T4: TryFrom<Value<'static>, Error = E>,
T5: TryFrom<Value<'static>, Error = E>,
T6: TryFrom<Value<'static>, Error = E>,
T7: TryFrom<Value<'static>, Error = E>,
T8: TryFrom<Value<'static>, Error = E>,
T9: TryFrom<Value<'static>, Error = E>,
T10: TryFrom<Value<'static>, Error = E>,
T11: TryFrom<Value<'static>, Error = E>,
Error: From<E>,
impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)where
T0: TryFrom<Value<'static>, Error = E>,
T1: TryFrom<Value<'static>, Error = E>,
T2: TryFrom<Value<'static>, Error = E>,
T3: TryFrom<Value<'static>, Error = E>,
T4: TryFrom<Value<'static>, Error = E>,
T5: TryFrom<Value<'static>, Error = E>,
T6: TryFrom<Value<'static>, Error = E>,
T7: TryFrom<Value<'static>, Error = E>,
T8: TryFrom<Value<'static>, Error = E>,
T9: TryFrom<Value<'static>, Error = E>,
T10: TryFrom<Value<'static>, Error = E>,
T11: TryFrom<Value<'static>, Error = E>,
Error: From<E>,
source§impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)where
T0: TryFrom<Value<'static>, Error = E>,
T1: TryFrom<Value<'static>, Error = E>,
T2: TryFrom<Value<'static>, Error = E>,
T3: TryFrom<Value<'static>, Error = E>,
T4: TryFrom<Value<'static>, Error = E>,
T5: TryFrom<Value<'static>, Error = E>,
T6: TryFrom<Value<'static>, Error = E>,
T7: TryFrom<Value<'static>, Error = E>,
T8: TryFrom<Value<'static>, Error = E>,
T9: TryFrom<Value<'static>, Error = E>,
T10: TryFrom<Value<'static>, Error = E>,
T11: TryFrom<Value<'static>, Error = E>,
T12: TryFrom<Value<'static>, Error = E>,
Error: From<E>,
impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)where
T0: TryFrom<Value<'static>, Error = E>,
T1: TryFrom<Value<'static>, Error = E>,
T2: TryFrom<Value<'static>, Error = E>,
T3: TryFrom<Value<'static>, Error = E>,
T4: TryFrom<Value<'static>, Error = E>,
T5: TryFrom<Value<'static>, Error = E>,
T6: TryFrom<Value<'static>, Error = E>,
T7: TryFrom<Value<'static>, Error = E>,
T8: TryFrom<Value<'static>, Error = E>,
T9: TryFrom<Value<'static>, Error = E>,
T10: TryFrom<Value<'static>, Error = E>,
T11: TryFrom<Value<'static>, Error = E>,
T12: TryFrom<Value<'static>, Error = E>,
Error: From<E>,
source§impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)where
T0: TryFrom<Value<'static>, Error = E>,
T1: TryFrom<Value<'static>, Error = E>,
T2: TryFrom<Value<'static>, Error = E>,
T3: TryFrom<Value<'static>, Error = E>,
T4: TryFrom<Value<'static>, Error = E>,
T5: TryFrom<Value<'static>, Error = E>,
T6: TryFrom<Value<'static>, Error = E>,
T7: TryFrom<Value<'static>, Error = E>,
T8: TryFrom<Value<'static>, Error = E>,
T9: TryFrom<Value<'static>, Error = E>,
T10: TryFrom<Value<'static>, Error = E>,
T11: TryFrom<Value<'static>, Error = E>,
T12: TryFrom<Value<'static>, Error = E>,
T13: TryFrom<Value<'static>, Error = E>,
Error: From<E>,
impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)where
T0: TryFrom<Value<'static>, Error = E>,
T1: TryFrom<Value<'static>, Error = E>,
T2: TryFrom<Value<'static>, Error = E>,
T3: TryFrom<Value<'static>, Error = E>,
T4: TryFrom<Value<'static>, Error = E>,
T5: TryFrom<Value<'static>, Error = E>,
T6: TryFrom<Value<'static>, Error = E>,
T7: TryFrom<Value<'static>, Error = E>,
T8: TryFrom<Value<'static>, Error = E>,
T9: TryFrom<Value<'static>, Error = E>,
T10: TryFrom<Value<'static>, Error = E>,
T11: TryFrom<Value<'static>, Error = E>,
T12: TryFrom<Value<'static>, Error = E>,
T13: TryFrom<Value<'static>, Error = E>,
Error: From<E>,
source§impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)where
T0: TryFrom<Value<'static>, Error = E>,
T1: TryFrom<Value<'static>, Error = E>,
T2: TryFrom<Value<'static>, Error = E>,
T3: TryFrom<Value<'static>, Error = E>,
T4: TryFrom<Value<'static>, Error = E>,
T5: TryFrom<Value<'static>, Error = E>,
T6: TryFrom<Value<'static>, Error = E>,
T7: TryFrom<Value<'static>, Error = E>,
T8: TryFrom<Value<'static>, Error = E>,
T9: TryFrom<Value<'static>, Error = E>,
T10: TryFrom<Value<'static>, Error = E>,
T11: TryFrom<Value<'static>, Error = E>,
T12: TryFrom<Value<'static>, Error = E>,
T13: TryFrom<Value<'static>, Error = E>,
T14: TryFrom<Value<'static>, Error = E>,
Error: From<E>,
impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)where
T0: TryFrom<Value<'static>, Error = E>,
T1: TryFrom<Value<'static>, Error = E>,
T2: TryFrom<Value<'static>, Error = E>,
T3: TryFrom<Value<'static>, Error = E>,
T4: TryFrom<Value<'static>, Error = E>,
T5: TryFrom<Value<'static>, Error = E>,
T6: TryFrom<Value<'static>, Error = E>,
T7: TryFrom<Value<'static>, Error = E>,
T8: TryFrom<Value<'static>, Error = E>,
T9: TryFrom<Value<'static>, Error = E>,
T10: TryFrom<Value<'static>, Error = E>,
T11: TryFrom<Value<'static>, Error = E>,
T12: TryFrom<Value<'static>, Error = E>,
T13: TryFrom<Value<'static>, Error = E>,
T14: TryFrom<Value<'static>, Error = E>,
Error: From<E>,
source§impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where
T0: TryFrom<Value<'static>, Error = E>,
T1: TryFrom<Value<'static>, Error = E>,
T2: TryFrom<Value<'static>, Error = E>,
T3: TryFrom<Value<'static>, Error = E>,
T4: TryFrom<Value<'static>, Error = E>,
T5: TryFrom<Value<'static>, Error = E>,
T6: TryFrom<Value<'static>, Error = E>,
T7: TryFrom<Value<'static>, Error = E>,
T8: TryFrom<Value<'static>, Error = E>,
T9: TryFrom<Value<'static>, Error = E>,
T10: TryFrom<Value<'static>, Error = E>,
T11: TryFrom<Value<'static>, Error = E>,
T12: TryFrom<Value<'static>, Error = E>,
T13: TryFrom<Value<'static>, Error = E>,
T14: TryFrom<Value<'static>, Error = E>,
T15: TryFrom<Value<'static>, Error = E>,
Error: From<E>,
impl<E, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> TryFrom<OwnedValue> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)where
T0: TryFrom<Value<'static>, Error = E>,
T1: TryFrom<Value<'static>, Error = E>,
T2: TryFrom<Value<'static>, Error = E>,
T3: TryFrom<Value<'static>, Error = E>,
T4: TryFrom<Value<'static>, Error = E>,
T5: TryFrom<Value<'static>, Error = E>,
T6: TryFrom<Value<'static>, Error = E>,
T7: TryFrom<Value<'static>, Error = E>,
T8: TryFrom<Value<'static>, Error = E>,
T9: TryFrom<Value<'static>, Error = E>,
T10: TryFrom<Value<'static>, Error = E>,
T11: TryFrom<Value<'static>, Error = E>,
T12: TryFrom<Value<'static>, Error = E>,
T13: TryFrom<Value<'static>, Error = E>,
T14: TryFrom<Value<'static>, Error = E>,
T15: TryFrom<Value<'static>, Error = E>,
Error: From<E>,
source§impl TryFrom<OwnedValue> for Array<'static>
impl TryFrom<OwnedValue> for Array<'static>
source§impl<'a, F> TryFrom<OwnedValue> for BitFlags<F>
impl<'a, F> TryFrom<OwnedValue> for BitFlags<F>
source§impl TryFrom<OwnedValue> for Dict<'static, 'static>
impl TryFrom<OwnedValue> for Dict<'static, 'static>
source§impl TryFrom<OwnedValue> for Fd
impl TryFrom<OwnedValue> for Fd
source§impl<'k, 'v, K, V, H> TryFrom<OwnedValue> for HashMap<K, V, H>
impl<'k, 'v, K, V, H> TryFrom<OwnedValue> for HashMap<K, V, H>
source§impl TryFrom<OwnedValue> for ObjectPath<'static>
impl TryFrom<OwnedValue> for ObjectPath<'static>
source§impl TryFrom<OwnedValue> for OwnedObjectPath
impl TryFrom<OwnedValue> for OwnedObjectPath
source§impl TryFrom<OwnedValue> for OwnedSignature
impl TryFrom<OwnedValue> for OwnedSignature
source§impl TryFrom<OwnedValue> for Signature<'static>
impl TryFrom<OwnedValue> for Signature<'static>
source§impl TryFrom<OwnedValue> for Str<'static>
impl TryFrom<OwnedValue> for Str<'static>
source§impl TryFrom<OwnedValue> for String
impl TryFrom<OwnedValue> for String
source§impl TryFrom<OwnedValue> for Structure<'static>
impl TryFrom<OwnedValue> for Structure<'static>
source§impl<'a, T> TryFrom<OwnedValue> for Vec<T>
impl<'a, T> TryFrom<OwnedValue> for Vec<T>
source§impl TryFrom<OwnedValue> for bool
impl TryFrom<OwnedValue> for bool
source§impl TryFrom<OwnedValue> for f64
impl TryFrom<OwnedValue> for f64
source§impl TryFrom<OwnedValue> for i16
impl TryFrom<OwnedValue> for i16
source§impl TryFrom<OwnedValue> for i32
impl TryFrom<OwnedValue> for i32
source§impl TryFrom<OwnedValue> for i64
impl TryFrom<OwnedValue> for i64
source§impl TryFrom<OwnedValue> for u16
impl TryFrom<OwnedValue> for u16
source§impl TryFrom<OwnedValue> for u32
impl TryFrom<OwnedValue> for u32
source§impl TryFrom<OwnedValue> for u64
impl TryFrom<OwnedValue> for u64
source§impl TryFrom<OwnedValue> for u8
impl TryFrom<OwnedValue> for u8
source§impl Type for OwnedValue
impl Type for OwnedValue
impl StructuralPartialEq for OwnedValue
Auto Trait Implementations§
impl Freeze for OwnedValue
impl RefUnwindSafe for OwnedValue
impl Send for OwnedValue
impl Sync for OwnedValue
impl Unpin for OwnedValue
impl UnwindSafe for OwnedValue
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<'de, T> DynamicDeserialize<'de> for T
impl<'de, T> DynamicDeserialize<'de> for T
source§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
source§fn deserializer_for_signature<S>(
signature: S,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature<S>( signature: S, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this signature.
source§impl<T> DynamicType for T
impl<T> DynamicType for T
source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more