Trait hprose::io::Encoder
[−]
[src]
pub trait Encoder { fn write_nil(&mut self); fn write_bool(&mut self, v: bool); fn write_i64(&mut self, v: i64); fn write_u64(&mut self, v: u64); fn write_f32(&mut self, v: f32); fn write_f64(&mut self, v: f64); fn write_char(&mut self, v: char); fn write_str(&mut self, v: &str); fn write_string(&mut self, v: &String); fn write_bytes(&mut self, v: &[u8]); fn write_bigint(&mut self, v: &BigInt); fn write_biguint(&mut self, v: &BigUint); fn write_ratio<T>(&mut self, v: &Ratio<T>)
where
T: Encodable + Clone + Integer + Display; fn write_complex32(&mut self, v: &Complex<f32>); fn write_complex64(&mut self, v: &Complex<f64>); fn write_datetime(&mut self, v: &Tm); fn write_uuid(&mut self, v: &Uuid); fn write_struct<T: Encodable>(&mut self, v: &T); fn write_struct_field<T: Encodable>(&mut self, v: T); fn write_struct_end(&mut self); fn write_option<T: Encodable>(&mut self, v: &Option<T>); fn write_seq<F>(&mut self, len: usize, f: F)
where
F: FnOnce(&mut Self); fn write_map<F>(&mut self, len: usize, f: F)
where
F: FnOnce(&mut Self); fn write_ref<T>(&mut self, p: *const T) -> bool; fn set_ref<T>(&mut self, p: *const T); }
Required Methods
fn write_nil(&mut self)
fn write_bool(&mut self, v: bool)
fn write_i64(&mut self, v: i64)
fn write_u64(&mut self, v: u64)
fn write_f32(&mut self, v: f32)
fn write_f64(&mut self, v: f64)
fn write_char(&mut self, v: char)
fn write_str(&mut self, v: &str)
fn write_string(&mut self, v: &String)
fn write_bytes(&mut self, v: &[u8])
fn write_bigint(&mut self, v: &BigInt)
fn write_biguint(&mut self, v: &BigUint)
fn write_ratio<T>(&mut self, v: &Ratio<T>) where
T: Encodable + Clone + Integer + Display,
T: Encodable + Clone + Integer + Display,
fn write_complex32(&mut self, v: &Complex<f32>)
fn write_complex64(&mut self, v: &Complex<f64>)
fn write_datetime(&mut self, v: &Tm)
fn write_uuid(&mut self, v: &Uuid)
fn write_struct<T: Encodable>(&mut self, v: &T)
fn write_struct_field<T: Encodable>(&mut self, v: T)
fn write_struct_end(&mut self)
fn write_option<T: Encodable>(&mut self, v: &Option<T>)
fn write_seq<F>(&mut self, len: usize, f: F) where
F: FnOnce(&mut Self),
F: FnOnce(&mut Self),
fn write_map<F>(&mut self, len: usize, f: F) where
F: FnOnce(&mut Self),
F: FnOnce(&mut Self),
fn write_ref<T>(&mut self, p: *const T) -> bool
fn set_ref<T>(&mut self, p: *const T)
Implementors
impl Encoder for Writer