Support code for encoding and decoding types.
Decodable
Decoder
DecoderHelpers
Encodable
Encoder
EncoderHelpers
of Encodable<S> for uint where <S: Encoder>
of Decodable<D> for uint where <D: Decoder>
of Encodable<S> for u8 where <S: Encoder>
of Decodable<D> for u8 where <D: Decoder>
of Encodable<S> for u16 where <S: Encoder>
of Decodable<D> for u16 where <D: Decoder>
of Encodable<S> for u32 where <S: Encoder>
of Decodable<D> for u32 where <D: Decoder>
of Encodable<S> for u64 where <S: Encoder>
of Decodable<D> for u64 where <D: Decoder>
of Encodable<S> for int where <S: Encoder>
of Decodable<D> for int where <D: Decoder>
of Encodable<S> for i8 where <S: Encoder>
of Decodable<D> for i8 where <D: Decoder>
of Encodable<S> for i16 where <S: Encoder>
of Decodable<D> for i16 where <D: Decoder>
of Encodable<S> for i32 where <S: Encoder>
of Decodable<D> for i32 where <D: Decoder>
of Encodable<S> for i64 where <S: Encoder>
of Decodable<D> for i64 where <D: Decoder>
of Encodable<S> for &'self str where <'self, S: Encoder>
of Encodable<S> for ~str where <S: Encoder>
of Decodable<D> for ~str where <D: Decoder>
of Encodable<S> for @str where <S: Encoder>
of Decodable<D> for @str where <D: Decoder>
of Encodable<S> for float where <S: Encoder>
of Decodable<D> for float where <D: Decoder>
of Encodable<S> for f32 where <S: Encoder>
of Decodable<D> for f32 where <D: Decoder>
of Encodable<S> for f64 where <S: Encoder>
of Decodable<D> for f64 where <D: Decoder>
of Encodable<S> for bool where <S: Encoder>
of Decodable<D> for bool where <D: Decoder>
of Encodable<S> for char where <S: Encoder>
of Decodable<D> for char where <D: Decoder>
of Encodable<S> for () where <S: Encoder>
of Decodable<D> for () where <D: Decoder>
of Encodable<S> for &'self T where <'self, S: Encoder, T: Encodable<S>>
of Encodable<S> for ~T where <S: Encoder, T: Encodable<S>>
of Decodable<D> for ~T where <D: Decoder, T: Decodable<D>>
of Encodable<S> for @T where <S: Encoder, T: Encodable<S>>
of Decodable<D> for @T where <D: Decoder, T: Decodable<D>>
of Encodable<S> for &'self [T] where <'self, S: Encoder, T: Encodable<S>>
of Encodable<S> for ~[T] where <S: Encoder, T: Encodable<S>>
of Decodable<D> for ~[T] where <D: Decoder, T: Decodable<D>>
of Encodable<S> for @[T] where <S: Encoder, T: Encodable<S>>
of Decodable<D> for @[T] where <D: Decoder, T: Decodable<D>>
of Encodable<S> for Option<T> where <S: Encoder, T: Encodable<S>>
of Decodable<D> for Option<T> where <D: Decoder, T: Decodable<D>>
of Encodable<S> for (T0, T1) where <S: Encoder, T0: Encodable<S>, T1: Encodable<S>>
of Decodable<D> for (T0, T1) where <D: Decoder, T0: Decodable<D>, T1: Decodable<D>>
of Encodable<S> for (T0, T1, T2) where <S: Encoder, T0: Encodable<S>, T1: Encodable<S>, T2: Encodable<S>>
of Decodable<D> for (T0, T1, T2) where <D: Decoder, T0: Decodable<D>, T1: Decodable<D>, T2: Decodable<D>>
of Encodable<S> for (T0, T1, T2, T3) where <S: Encoder, T0: Encodable<S>, T1: Encodable<S>, T2: Encodable<S>, T3: Encodable<S>>
of Decodable<D> for (T0, T1, T2, T3) where <D: Decoder, T0: Decodable<D>, T1: Decodable<D>, T2: Decodable<D>, T3: Decodable<D>>
of Encodable<S> for (T0, T1, T2, T3, T4) where <S: Encoder, T0: Encodable<S>, T1: Encodable<S>, T2: Encodable<S>, T3: Encodable<S>, T4: Encodable<S>>
of Decodable<D> for (T0, T1, T2, T3, T4) where <D: Decoder, T0: Decodable<D>, T1: Decodable<D>, T2: Decodable<D>, T3: Decodable<D>, T4: Decodable<D>>
of Encodable<S> for @mut DList<T> where <S: Encoder, T: Encodable<S> + Copy>
of Decodable<D> for @mut DList<T> where <D: Decoder, T: Decodable<D>>
of Encodable<S> for Deque<T> where <S: Encoder, T: Encodable<S>>
of Decodable<D> for Deque<T> where <D: Decoder, T: Decodable<D>>
of Encodable<E> for HashMap<K, V> where <E: Encoder, K: Encodable<E> + Hash + IterBytes + Eq, V: Encodable<E>>
of Decodable<D> for HashMap<K, V> where <D: Decoder, K: Decodable<D> + Hash + IterBytes + Eq, V: Decodable<D>>
of Encodable<S> for HashSet<T> where <S: Encoder, T: Encodable<S> + Hash + IterBytes + Eq>
of Decodable<D> for HashSet<T> where <D: Decoder, T: Decodable<D> + Hash + IterBytes + Eq>
of Encodable<E> for TrieMap<V> where <E: Encoder, V: Encodable<E>>
of Decodable<D> for TrieMap<V> where <D: Decoder, V: Decodable<D>>
of Encodable<S> for TrieSet where <S: Encoder>
of Decodable<D> for TrieSet where <D: Decoder>
of Encodable<E> for TreeMap<K, V> where <E: Encoder, K: Encodable<E> + Eq + TotalOrd, V: Encodable<E> + Eq>
of Decodable<D> for TreeMap<K, V> where <D: Decoder, K: Decodable<D> + Eq + TotalOrd, V: Decodable<D> + Eq>
of Encodable<S> for TreeSet<T> where <S: Encoder, T: Encodable<S> + Eq + TotalOrd>
of Decodable<D> for TreeSet<T> where <D: Decoder, T: Decodable<D> + Eq + TotalOrd>
of EncoderHelpers for S where <S: Encoder>
of DecoderHelpers for D where <D: Decoder>
Decodable
decode
fn decode(d: &mut D) -> Self
Decoder
read_nil
fn read_nil(&mut self)
read_uint
fn read_uint(&mut self) -> uint
read_u64
fn read_u64(&mut self) -> u64
read_u32
fn read_u32(&mut self) -> u32
read_u16
fn read_u16(&mut self) -> u16
read_u8
fn read_u8(&mut self) -> u8
read_int
fn read_int(&mut self) -> int
read_i64
fn read_i64(&mut self) -> i64
read_i32
fn read_i32(&mut self) -> i32
read_i16
fn read_i16(&mut self) -> i16
read_i8
fn read_i8(&mut self) -> i8
read_bool
fn read_bool(&mut self) -> bool
read_f64
fn read_f64(&mut self) -> f64
read_f32
fn read_f32(&mut self) -> f32
read_float
fn read_float(&mut self) -> float
read_char
fn read_char(&mut self) -> char
read_str
fn read_str(&mut self) -> ~str
read_enum
fn read_enum<T>(&mut self, name: &str, f: &fn(&mut Self) -> T) -> T
read_enum_variant
fn read_enum_variant<T>(&mut self, names: &[&str],
f: &fn(&mut Self, uint) -> T) -> T
read_enum_variant_arg
fn read_enum_variant_arg<T>(&mut self, a_idx: uint, f: &fn(&mut Self) -> T) ->
T
read_enum_struct_variant
fn read_enum_struct_variant<T>(&mut self, names: &[&str],
f: &fn(&mut Self, uint) -> T) -> T
read_enum_struct_variant_field
fn read_enum_struct_variant_field<T>(&mut self, &f_name: &str, f_idx: uint,
f: &fn(&mut Self) -> T) -> T
read_struct
fn read_struct<T>(&mut self, s_name: &str, len: uint, f: &fn(&mut Self) -> T)
-> T
read_struct_field
fn read_struct_field<T>(&mut self, f_name: &str, f_idx: uint,
f: &fn(&mut Self) -> T) -> T
read_tuple
fn read_tuple<T>(&mut self, f: &fn(&mut Self, uint) -> T) -> T
read_tuple_arg
fn read_tuple_arg<T>(&mut self, a_idx: uint, f: &fn(&mut Self) -> T) -> T
read_tuple_struct
fn read_tuple_struct<T>(&mut self, s_name: &str, f: &fn(&mut Self, uint) -> T)
-> T
read_tuple_struct_arg
fn read_tuple_struct_arg<T>(&mut self, a_idx: uint, f: &fn(&mut Self) -> T) ->
T
read_option
fn read_option<T>(&mut self, f: &fn(&mut Self, bool) -> T) -> T
read_seq
fn read_seq<T>(&mut self, f: &fn(&mut Self, uint) -> T) -> T
read_seq_elt
fn read_seq_elt<T>(&mut self, idx: uint, f: &fn(&mut Self) -> T) -> T
read_map
fn read_map<T>(&mut self, f: &fn(&mut Self, uint) -> T) -> T
read_map_elt_key
fn read_map_elt_key<T>(&mut self, idx: uint, f: &fn(&mut Self) -> T) -> T
read_map_elt_val
fn read_map_elt_val<T>(&mut self, idx: uint, f: &fn(&mut Self) -> T) -> T
DecoderHelpers
read_to_vec
fn read_to_vec<T>(&mut self, f: &fn(&mut Self) -> T) -> ~[T]
Encodable
encode
fn encode(&self, s: &mut S)
Encoder
emit_nil
fn emit_nil(&mut self)
emit_uint
fn emit_uint(&mut self, v: uint)
emit_u64
fn emit_u64(&mut self, v: u64)
emit_u32
fn emit_u32(&mut self, v: u32)
emit_u16
fn emit_u16(&mut self, v: u16)
emit_u8
fn emit_u8(&mut self, v: u8)
emit_int
fn emit_int(&mut self, v: int)
emit_i64
fn emit_i64(&mut self, v: i64)
emit_i32
fn emit_i32(&mut self, v: i32)
emit_i16
fn emit_i16(&mut self, v: i16)
emit_i8
fn emit_i8(&mut self, v: i8)
emit_bool
fn emit_bool(&mut self, v: bool)
emit_float
fn emit_float(&mut self, v: float)
emit_f64
fn emit_f64(&mut self, v: f64)
emit_f32
fn emit_f32(&mut self, v: f32)
emit_char
fn emit_char(&mut self, v: char)
emit_str
fn emit_str(&mut self, v: &str)
emit_enum
fn emit_enum(&mut self, name: &str, f: &fn(&mut Self))
emit_enum_variant
fn emit_enum_variant(&mut self, v_name: &str, v_id: uint, len: uint,
f: &fn(&mut Self))
emit_enum_variant_arg
fn emit_enum_variant_arg(&mut self, a_idx: uint, f: &fn(&mut Self))
emit_enum_struct_variant
fn emit_enum_struct_variant(&mut self, v_name: &str, v_id: uint, len: uint,
f: &fn(&mut Self))
emit_enum_struct_variant_field
fn emit_enum_struct_variant_field(&mut self, f_name: &str, f_idx: uint,
f: &fn(&mut Self))
emit_struct
fn emit_struct(&mut self, name: &str, len: uint, f: &fn(&mut Self))
emit_struct_field
fn emit_struct_field(&mut self, f_name: &str, f_idx: uint, f: &fn(&mut Self))
emit_tuple
fn emit_tuple(&mut self, len: uint, f: &fn(&mut Self))
emit_tuple_arg
fn emit_tuple_arg(&mut self, idx: uint, f: &fn(&mut Self))
emit_tuple_struct
fn emit_tuple_struct(&mut self, name: &str, len: uint, f: &fn(&mut Self))
emit_tuple_struct_arg
fn emit_tuple_struct_arg(&mut self, f_idx: uint, f: &fn(&mut Self))
emit_option
fn emit_option(&mut self, f: &fn(&mut Self))
emit_option_none
fn emit_option_none(&mut self)
emit_option_some
fn emit_option_some(&mut self, f: &fn(&mut Self))
emit_seq
fn emit_seq(&mut self, len: uint, f: &fn(this: &mut Self))
emit_seq_elt
fn emit_seq_elt(&mut self, idx: uint, f: &fn(this: &mut Self))
emit_map
fn emit_map(&mut self, len: uint, f: &fn(&mut Self))
emit_map_elt_key
fn emit_map_elt_key(&mut self, idx: uint, f: &fn(&mut Self))
emit_map_elt_val
fn emit_map_elt_val(&mut self, idx: uint, f: &fn(&mut Self))
EncoderHelpers
emit_from_vec
fn emit_from_vec<T>(&mut self, v: &[T], f: &fn(&mut Self, v: &T))
Encodable<S>
for uint
where <S: Encoder>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for uint
where <D: Decoder>
decode
fn decode(d: &mut D) -> uint
Encodable<S>
for u8
where <S: Encoder>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for u8
where <D: Decoder>
decode
fn decode(d: &mut D) -> u8
Encodable<S>
for u16
where <S: Encoder>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for u16
where <D: Decoder>
decode
fn decode(d: &mut D) -> u16
Encodable<S>
for u32
where <S: Encoder>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for u32
where <D: Decoder>
decode
fn decode(d: &mut D) -> u32
Encodable<S>
for u64
where <S: Encoder>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for u64
where <D: Decoder>
decode
fn decode(d: &mut D) -> u64
Encodable<S>
for int
where <S: Encoder>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for int
where <D: Decoder>
decode
fn decode(d: &mut D) -> int
Encodable<S>
for i8
where <S: Encoder>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for i8
where <D: Decoder>
decode
fn decode(d: &mut D) -> i8
Encodable<S>
for i16
where <S: Encoder>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for i16
where <D: Decoder>
decode
fn decode(d: &mut D) -> i16
Encodable<S>
for i32
where <S: Encoder>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for i32
where <D: Decoder>
decode
fn decode(d: &mut D) -> i32
Encodable<S>
for i64
where <S: Encoder>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for i64
where <D: Decoder>
decode
fn decode(d: &mut D) -> i64
Encodable<S>
for &'self str
where <'self, S: Encoder>
encode
fn encode(&self, s: &mut S)
Encodable<S>
for ~str
where <S: Encoder>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for ~str
where <D: Decoder>
decode
fn decode(d: &mut D) -> ~str
Encodable<S>
for @str
where <S: Encoder>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for @str
where <D: Decoder>
decode
fn decode(d: &mut D) -> @str
Encodable<S>
for float
where <S: Encoder>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for float
where <D: Decoder>
decode
fn decode(d: &mut D) -> float
Encodable<S>
for f32
where <S: Encoder>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for f32
where <D: Decoder>
decode
fn decode(d: &mut D) -> f32
Encodable<S>
for f64
where <S: Encoder>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for f64
where <D: Decoder>
decode
fn decode(d: &mut D) -> f64
Encodable<S>
for bool
where <S: Encoder>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for bool
where <D: Decoder>
decode
fn decode(d: &mut D) -> bool
Encodable<S>
for char
where <S: Encoder>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for char
where <D: Decoder>
decode
fn decode(d: &mut D) -> char
Encodable<S>
for ()
where <S: Encoder>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for ()
where <D: Decoder>
decode
fn decode(d: &mut D)
Encodable<S>
for &'self T
where <'self, S: Encoder, T: Encodable<S>>
encode
fn encode(&self, s: &mut S)
Encodable<S>
for ~T
where <S: Encoder, T: Encodable<S>>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for ~T
where <D: Decoder, T: Decodable<D>>
decode
fn decode(d: &mut D) -> ~T
Encodable<S>
for @T
where <S: Encoder, T: Encodable<S>>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for @T
where <D: Decoder, T: Decodable<D>>
decode
fn decode(d: &mut D) -> @T
Encodable<S>
for &'self [T]
where <'self, S: Encoder, T: Encodable<S>>
encode
fn encode(&self, s: &mut S)
Encodable<S>
for ~[T]
where <S: Encoder, T: Encodable<S>>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for ~[T]
where <D: Decoder, T: Decodable<D>>
decode
fn decode(d: &mut D) -> ~[T]
Encodable<S>
for @[T]
where <S: Encoder, T: Encodable<S>>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for @[T]
where <D: Decoder, T: Decodable<D>>
decode
fn decode(d: &mut D) -> @[T]
Encodable<S>
for Option<T>
where <S: Encoder, T: Encodable<S>>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for Option<T>
where <D: Decoder, T: Decodable<D>>
decode
fn decode(d: &mut D) -> Option<T>
Encodable<S>
for (T0, T1)
where <S: Encoder, T0: Encodable<S>, T1: Encodable<S>>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for (T0, T1)
where <D: Decoder, T0: Decodable<D>, T1: Decodable<D>>
decode
fn decode(d: &mut D) -> (T0, T1)
Encodable<S>
for (T0, T1, T2)
where <S: Encoder, T0: Encodable<S>, T1: Encodable<S>, T2: Encodable<S>>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for (T0, T1, T2)
where <D: Decoder, T0: Decodable<D>, T1: Decodable<D>, T2: Decodable<D>>
decode
fn decode(d: &mut D) -> (T0, T1, T2)
Encodable<S>
for (T0, T1, T2, T3)
where <S: Encoder, T0: Encodable<S>, T1: Encodable<S>, T2: Encodable<S>, T3: Encodable<S>>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for (T0, T1, T2, T3)
where <D: Decoder, T0: Decodable<D>, T1: Decodable<D>, T2: Decodable<D>, T3: Decodable<D>>
decode
fn decode(d: &mut D) -> (T0, T1, T2, T3)
Encodable<S>
for (T0, T1, T2, T3, T4)
where <S: Encoder, T0: Encodable<S>, T1: Encodable<S>, T2: Encodable<S>, T3: Encodable<S>, T4: Encodable<S>>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for (T0, T1, T2, T3, T4)
where <D: Decoder, T0: Decodable<D>, T1: Decodable<D>, T2: Decodable<D>, T3: Decodable<D>, T4: Decodable<D>>
decode
fn decode(d: &mut D) -> (T0, T1, T2, T3, T4)
Encodable<S>
for @mut DList<T>
where <S: Encoder, T: Encodable<S> + Copy>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for @mut DList<T>
where <D: Decoder, T: Decodable<D>>
decode
fn decode(d: &mut D) -> @mut DList<T>
Encodable<S>
for Deque<T>
where <S: Encoder, T: Encodable<S>>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for Deque<T>
where <D: Decoder, T: Decodable<D>>
decode
fn decode(d: &mut D) -> Deque<T>
Encodable<E>
for HashMap<K, V>
where <E: Encoder, K: Encodable<E> + Hash + IterBytes + Eq, V: Encodable<E>>
encode
fn encode(&self, e: &mut E)
Decodable<D>
for HashMap<K, V>
where <D: Decoder, K: Decodable<D> + Hash + IterBytes + Eq, V: Decodable<D>>
decode
fn decode(d: &mut D) -> HashMap<K, V>
Encodable<S>
for HashSet<T>
where <S: Encoder, T: Encodable<S> + Hash + IterBytes + Eq>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for HashSet<T>
where <D: Decoder, T: Decodable<D> + Hash + IterBytes + Eq>
decode
fn decode(d: &mut D) -> HashSet<T>
Encodable<E>
for TrieMap<V>
where <E: Encoder, V: Encodable<E>>
encode
fn encode(&self, e: &mut E)
Decodable<D>
for TrieMap<V>
where <D: Decoder, V: Decodable<D>>
decode
fn decode(d: &mut D) -> TrieMap<V>
Encodable<S>
for TrieSet
where <S: Encoder>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for TrieSet
where <D: Decoder>
decode
fn decode(d: &mut D) -> TrieSet
Encodable<E>
for TreeMap<K, V>
where <E: Encoder, K: Encodable<E> + Eq + TotalOrd, V: Encodable<E> + Eq>
encode
fn encode(&self, e: &mut E)
Decodable<D>
for TreeMap<K, V>
where <D: Decoder, K: Decodable<D> + Eq + TotalOrd, V: Decodable<D> + Eq>
decode
fn decode(d: &mut D) -> TreeMap<K, V>
Encodable<S>
for TreeSet<T>
where <S: Encoder, T: Encodable<S> + Eq + TotalOrd>
encode
fn encode(&self, s: &mut S)
Decodable<D>
for TreeSet<T>
where <D: Decoder, T: Decodable<D> + Eq + TotalOrd>
decode
fn decode(d: &mut D) -> TreeSet<T>
EncoderHelpers
for S
where <S: Encoder>
emit_from_vec
fn emit_from_vec<T>(&mut self, v: &[T], f: &fn(&mut S, &T))
DecoderHelpers
for D
where <D: Decoder>
read_to_vec
fn read_to_vec<T>(&mut self, f: &fn(&mut D) -> T) -> ~[T]