Struct rustc_ap_rustc_serialize::opaque::Encoder[][src]

pub struct Encoder {
    pub data: Vec<u8>,
}

Fields

data: Vec<u8>

Implementations

impl Encoder[src]

pub fn new(data: Vec<u8>) -> Encoder[src]

pub fn into_inner(self) -> Vec<u8>[src]

pub fn position(&self) -> usize[src]

Trait Implementations

impl Encodable<Encoder> for [u8][src]

fn encode(&self, e: &mut Encoder) -> EncodeResult[src]

impl Encodable<Encoder> for IntEncodedWithFixedSize[src]

fn encode(&self, e: &mut Encoder) -> EncodeResult[src]

impl Encoder for Encoder[src]

type Error = !

fn emit_unit(&mut self) -> EncodeResult[src]

fn emit_usize(&mut self, v: usize) -> EncodeResult[src]

fn emit_u128(&mut self, v: u128) -> EncodeResult[src]

fn emit_u64(&mut self, v: u64) -> EncodeResult[src]

fn emit_u32(&mut self, v: u32) -> EncodeResult[src]

fn emit_u16(&mut self, v: u16) -> EncodeResult[src]

fn emit_u8(&mut self, v: u8) -> EncodeResult[src]

fn emit_isize(&mut self, v: isize) -> EncodeResult[src]

fn emit_i128(&mut self, v: i128) -> EncodeResult[src]

fn emit_i64(&mut self, v: i64) -> EncodeResult[src]

fn emit_i32(&mut self, v: i32) -> EncodeResult[src]

fn emit_i16(&mut self, v: i16) -> EncodeResult[src]

fn emit_i8(&mut self, v: i8) -> EncodeResult[src]

fn emit_bool(&mut self, v: bool) -> EncodeResult[src]

fn emit_f64(&mut self, v: f64) -> EncodeResult[src]

fn emit_f32(&mut self, v: f32) -> EncodeResult[src]

fn emit_char(&mut self, v: char) -> EncodeResult[src]

fn emit_str(&mut self, v: &str) -> EncodeResult[src]

fn emit_raw_bytes(&mut self, s: &[u8]) -> EncodeResult[src]

fn emit_enum<F>(&mut self, _name: &str, f: F) -> Result<(), Self::Error> where
    F: FnOnce(&mut Self) -> Result<(), Self::Error>, 
[src]

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>, 
[src]

fn emit_enum_variant_arg<F>(
    &mut self,
    _a_idx: usize,
    f: F
) -> Result<(), Self::Error> where
    F: FnOnce(&mut Self) -> Result<(), Self::Error>, 
[src]

fn emit_enum_struct_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>, 
[src]

fn emit_enum_struct_variant_field<F>(
    &mut self,
    _f_name: &str,
    f_idx: usize,
    f: F
) -> Result<(), Self::Error> where
    F: FnOnce(&mut Self) -> Result<(), Self::Error>, 
[src]

fn emit_struct<F>(
    &mut self,
    _name: &str,
    _len: usize,
    f: F
) -> Result<(), Self::Error> where
    F: FnOnce(&mut Self) -> Result<(), Self::Error>, 
[src]

fn emit_struct_field<F>(
    &mut self,
    _f_name: &str,
    _f_idx: usize,
    f: F
) -> Result<(), Self::Error> where
    F: FnOnce(&mut Self) -> Result<(), Self::Error>, 
[src]

fn emit_tuple<F>(&mut self, _len: usize, f: F) -> Result<(), Self::Error> where
    F: FnOnce(&mut Self) -> Result<(), Self::Error>, 
[src]

fn emit_tuple_arg<F>(&mut self, _idx: usize, f: F) -> Result<(), Self::Error> where
    F: FnOnce(&mut Self) -> Result<(), Self::Error>, 
[src]

fn emit_tuple_struct<F>(
    &mut self,
    _name: &str,
    len: usize,
    f: F
) -> Result<(), Self::Error> where
    F: FnOnce(&mut Self) -> Result<(), Self::Error>, 
[src]

fn emit_tuple_struct_arg<F>(
    &mut self,
    f_idx: usize,
    f: F
) -> Result<(), Self::Error> where
    F: FnOnce(&mut Self) -> Result<(), Self::Error>, 
[src]

fn emit_option<F>(&mut self, f: F) -> Result<(), Self::Error> where
    F: FnOnce(&mut Self) -> Result<(), Self::Error>, 
[src]

fn emit_option_none(&mut self) -> Result<(), Self::Error>[src]

fn emit_option_some<F>(&mut self, f: F) -> Result<(), Self::Error> where
    F: FnOnce(&mut Self) -> Result<(), Self::Error>, 
[src]

fn emit_seq<F>(&mut self, len: usize, f: F) -> Result<(), Self::Error> where
    F: FnOnce(&mut Self) -> Result<(), Self::Error>, 
[src]

fn emit_seq_elt<F>(&mut self, _idx: usize, f: F) -> Result<(), Self::Error> where
    F: FnOnce(&mut Self) -> Result<(), Self::Error>, 
[src]

fn emit_map<F>(&mut self, len: usize, f: F) -> Result<(), Self::Error> where
    F: FnOnce(&mut Self) -> Result<(), Self::Error>, 
[src]

fn emit_map_elt_key<F>(&mut self, _idx: usize, f: F) -> Result<(), Self::Error> where
    F: FnOnce(&mut Self) -> Result<(), Self::Error>, 
[src]

fn emit_map_elt_val<F>(&mut self, _idx: usize, f: F) -> Result<(), Self::Error> where
    F: FnOnce(&mut Self) -> Result<(), Self::Error>, 
[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.