Struct rustc_serialize::opaque::MemEncoder
source · Fields§
§data: Vec<u8>
Implementations§
Trait Implementations§
source§impl Encodable<MemEncoder> for [u8]
impl Encodable<MemEncoder> for [u8]
fn encode(&self, e: &mut MemEncoder)
source§impl Encodable<MemEncoder> for IntEncodedWithFixedSize
impl Encodable<MemEncoder> for IntEncodedWithFixedSize
fn encode(&self, e: &mut MemEncoder)
source§impl Encoder for MemEncoder
impl Encoder for MemEncoder
fn emit_usize(&mut self, v: usize)
fn emit_u128(&mut self, v: u128)
fn emit_u64(&mut self, v: u64)
fn emit_u32(&mut self, v: u32)
fn emit_u16(&mut self, v: u16)
fn emit_u8(&mut self, v: u8)
fn emit_isize(&mut self, v: isize)
fn emit_i128(&mut self, v: i128)
fn emit_i64(&mut self, v: i64)
fn emit_i32(&mut self, v: i32)
fn emit_i16(&mut self, v: i16)
fn emit_i8(&mut self, v: i8)
fn emit_bool(&mut self, v: bool)
fn emit_f64(&mut self, v: f64)
fn emit_f32(&mut self, v: f32)
fn emit_char(&mut self, v: char)
fn emit_str(&mut self, v: &str)
fn emit_raw_bytes(&mut self, s: &[u8])
fn emit_enum_variant<F>(&mut self, v_id: usize, f: F)where
F: FnOnce(&mut Self),
fn emit_fieldless_enum_variant<const ID: usize>(&mut self)
Auto Trait Implementations§
impl RefUnwindSafe for MemEncoder
impl Send for MemEncoder
impl Sync for MemEncoder
impl Unpin for MemEncoder
impl UnwindSafe for MemEncoder
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes