pub enum Amf0Value<'a> {
Number(f64),
Boolean(bool),
String(Cow<'a, str>),
Object(Cow<'a, [(Cow<'a, str>, Amf0Value<'a>)]>),
Null,
ObjectEnd,
LongString(Cow<'a, str>),
}Expand description
AMF0 value types. Defined in amf0_spec_121207.pdf section 2.2-2.14
Variants§
Number(f64)
Number Type defined section 2.2
Boolean(bool)
Boolean Type defined section 2.3
String(Cow<'a, str>)
String Type defined section 2.4
Object(Cow<'a, [(Cow<'a, str>, Amf0Value<'a>)]>)
Object Type defined section 2.5
Null
Null Type defined section 2.7
ObjectEnd
Undefined Type defined section 2.8
LongString(Cow<'a, str>)
LongString Type defined section 2.14
Implementations§
Trait Implementations§
impl<'a> StructuralPartialEq for Amf0Value<'a>
Auto Trait Implementations§
impl<'a> Freeze for Amf0Value<'a>
impl<'a> RefUnwindSafe for Amf0Value<'a>
impl<'a> Send for Amf0Value<'a>
impl<'a> Sync for Amf0Value<'a>
impl<'a> Unpin for Amf0Value<'a>
impl<'a> UnwindSafe for Amf0Value<'a>
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