Enum tc_value::ValueType [−][src]
pub enum ValueType { Bytes, Id, Link, None, Number(NumberType), String, Tuple, Value, }
The class of a Value
.
Variants
Number(NumberType)
Implementations
Trait Implementations
impl From<NumberType> for ValueType
[src]
impl From<NumberType> for ValueType
[src]fn from(nt: NumberType) -> ValueType
[src]
impl FromStream for ValueType
[src]
impl FromStream for ValueType
[src]type Context = ()
The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more
fn from_stream<'life0, 'async_trait, D: Decoder>(
cxt: (),
decoder: &'life0 mut D
) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>> where
D: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
cxt: (),
decoder: &'life0 mut D
) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>> where
D: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
impl NativeClass for ValueType
[src]
impl NativeClass for ValueType
[src]impl PartialOrd<ValueType> for ValueType
[src]
impl PartialOrd<ValueType> for ValueType
[src]impl StructuralEq for ValueType
[src]
impl StructuralEq for ValueType
[src]impl StructuralPartialEq for ValueType
[src]
impl StructuralPartialEq for ValueType
[src]impl TryCastFrom<Value> for ValueType
[src]
impl TryCastFrom<Value> for ValueType
[src]fn can_cast_from(value: &Value) -> bool
[src]
fn opt_cast_from(value: Value) -> Option<Self>
[src]
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]
OnErr: FnOnce(&T) -> Err,
Auto Trait Implementations
impl RefUnwindSafe for ValueType
impl RefUnwindSafe for ValueType
impl UnwindSafe for ValueType
impl UnwindSafe for ValueType
Blanket Implementations
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
[src]
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
[src]pub fn can_cast_from(&F) -> bool
[src]
pub fn opt_cast_from(f: F) -> Option<T>
[src]
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]
OnErr: FnOnce(&T) -> Err,
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
[src]
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
[src]pub fn can_cast_into(&self) -> bool
[src]
pub fn opt_cast_into(self) -> Option<T>
[src]
pub fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
[src]
OnErr: FnOnce(&Self) -> Err,