Struct rustc_serialize::opaque::Encoder
source · [−]Fields
data: Vec<u8>Implementations
Trait Implementations
sourceimpl Encodable<Encoder> for IntEncodedWithFixedSize
impl Encodable<Encoder> for IntEncodedWithFixedSize
fn encode(&self, e: &mut Encoder) -> EncodeResult
sourceimpl Encoder for Encoder
impl Encoder for Encoder
type Error = !
fn emit_unit(&mut self) -> EncodeResult
fn emit_usize(&mut self, v: usize) -> EncodeResult
fn emit_u128(&mut self, v: u128) -> EncodeResult
fn emit_u64(&mut self, v: u64) -> EncodeResult
fn emit_u32(&mut self, v: u32) -> EncodeResult
fn emit_u16(&mut self, v: u16) -> EncodeResult
fn emit_u8(&mut self, v: u8) -> EncodeResult
fn emit_isize(&mut self, v: isize) -> EncodeResult
fn emit_i128(&mut self, v: i128) -> EncodeResult
fn emit_i64(&mut self, v: i64) -> EncodeResult
fn emit_i32(&mut self, v: i32) -> EncodeResult
fn emit_i16(&mut self, v: i16) -> EncodeResult
fn emit_i8(&mut self, v: i8) -> EncodeResult
fn emit_bool(&mut self, v: bool) -> EncodeResult
fn emit_f64(&mut self, v: f64) -> EncodeResult
fn emit_f32(&mut self, v: f32) -> EncodeResult
fn emit_char(&mut self, v: char) -> EncodeResult
fn emit_str(&mut self, v: &str) -> EncodeResult
fn emit_raw_bytes(&mut self, s: &[u8]) -> EncodeResult
fn emit_enum<F>(&mut self, f: F) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
fn emit_enum_variant<F>(
&mut self,
_v_name: &str,
v_id: usize,
_len: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
fn emit_fieldless_enum_variant<const ID: usize>(
&mut self,
_v_name: &str
) -> Result<(), Self::Error>
fn emit_enum_variant_arg<F>(
&mut self,
_first: bool,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
fn emit_struct<F>(&mut self, _no_fields: bool, f: F) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
fn emit_struct_field<F>(
&mut self,
_f_name: &str,
_first: bool,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
fn emit_tuple<F>(&mut self, _len: usize, f: F) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
fn emit_tuple_arg<F>(&mut self, _idx: usize, f: F) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
fn emit_option<F>(&mut self, f: F) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
fn emit_option_none(&mut self) -> Result<(), Self::Error>
fn emit_option_some<F>(&mut self, f: F) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
fn emit_seq<F>(&mut self, len: usize, f: F) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
fn emit_seq_elt<F>(&mut self, _idx: usize, f: F) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
fn emit_map<F>(&mut self, len: usize, f: F) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
fn emit_map_elt_key<F>(&mut self, _idx: usize, f: F) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
fn emit_map_elt_val<F>(&mut self, f: F) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
Auto Trait Implementations
impl RefUnwindSafe for Encoder
impl Send for Encoder
impl Sync for Encoder
impl Unpin for Encoder
impl UnwindSafe for Encoder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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