Enum amf::Value
[−]
[src]
pub enum Value { Amf0(Amf0Value), Amf3(Amf3Value), }
AMF value.
Variants
Amf0(Amf0Value)
AMF0 value.
Amf3(Amf3Value)
AMF3 value.
Methods
impl Value
[src]
fn read_from<R>(reader: R, version: Version) -> DecodeResult<Self> where
R: Read,
R: Read,
Reads an AMF encoded Value
from reader
.
Note that reference objects are copied in the decoding phase for the sake of simplicity of the resulting value representation. And circular reference are unsupported (i.e., those are treated as errors).
fn write_to<W>(&self, writer: W) -> Result<()> where
W: Write,
W: Write,
Writes the AMF encoded bytes of this value to writer
.
fn try_as_str(&self) -> Option<&str>
Tries to convert the value as a str
reference.
fn try_as_f64(&self) -> Option<f64>
Tries to convert the value as a f64
.
fn try_into_values(self) -> Result<Box<Iterator<Item = Value>>, Self>
Tries to convert the value as an iterator of the contained values.
fn try_into_pairs(self) -> Result<Box<Iterator<Item = (String, Value)>>, Self>
Tries to convert the value as an iterator of the contained pairs.
Trait Implementations
impl Debug for Value
[src]
impl Clone for Value
[src]
fn clone(&self) -> Value
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Value
[src]
fn eq(&self, __arg_0: &Value) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Value) -> bool
This method tests for !=
.
impl PartialOrd for Value
[src]
fn partial_cmp(&self, __arg_0: &Value) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Value) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Value) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Value) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Value) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more