Struct mustache::encoder::Encoder
[−]
[src]
pub struct Encoder { pub data: Vec<Data>, }
Fields
data |
pub struct Encoder { pub data: Vec<Data>, }
data |
impl Encoder
impl Encoder for Encoder
type Error = Error
fn emit_nil(&mut self) -> EncoderResult
fn emit_isize(&mut self, v: isize) -> EncoderResult
fn emit_usize(&mut self, v: usize) -> EncoderResult
fn emit_u64(&mut self, v: u64) -> EncoderResult
fn emit_u32(&mut self, v: u32) -> EncoderResult
fn emit_u16(&mut self, v: u16) -> EncoderResult
fn emit_u8(&mut self, v: u8) -> EncoderResult
fn emit_i64(&mut self, v: i64) -> EncoderResult
fn emit_i32(&mut self, v: i32) -> EncoderResult
fn emit_i16(&mut self, v: i16) -> EncoderResult
fn emit_i8(&mut self, v: i8) -> EncoderResult
fn emit_bool(&mut self, v: bool) -> EncoderResult
fn emit_f64(&mut self, v: f64) -> EncoderResult
fn emit_f32(&mut self, v: f32) -> EncoderResult
fn emit_char(&mut self, v: char) -> EncoderResult
fn emit_str(&mut self, v: &str) -> EncoderResult
fn emit_enum<F>(&mut self, _name: &str, _f: F) -> EncoderResult where F: FnOnce(&mut Encoder) -> EncoderResult
fn emit_enum_variant<F>(&mut self, _name: &str, _id: usize, _len: usize, _f: F) -> EncoderResult where F: FnOnce(&mut Encoder) -> EncoderResult
fn emit_enum_variant_arg<F>(&mut self, _a_idx: usize, _f: F) -> EncoderResult where F: FnOnce(&mut Encoder) -> EncoderResult
fn emit_enum_struct_variant<F>(&mut self, _v_name: &str, _v_id: usize, _len: usize, _f: F) -> EncoderResult where F: FnOnce(&mut Encoder) -> EncoderResult
fn emit_enum_struct_variant_field<F>(&mut self, _f_name: &str, _f_idx: usize, _f: F) -> EncoderResult where F: FnOnce(&mut Encoder) -> EncoderResult
fn emit_struct<F>(&mut self, _name: &str, _len: usize, f: F) -> EncoderResult where F: FnOnce(&mut Encoder) -> EncoderResult
fn emit_struct_field<F>(&mut self, name: &str, _idx: usize, f: F) -> EncoderResult where F: FnOnce(&mut Encoder) -> EncoderResult
fn emit_tuple<F>(&mut self, len: usize, f: F) -> EncoderResult where F: FnOnce(&mut Encoder) -> EncoderResult
fn emit_tuple_arg<F>(&mut self, idx: usize, f: F) -> EncoderResult where F: FnOnce(&mut Encoder) -> EncoderResult
fn emit_tuple_struct<F>(&mut self, _name: &str, len: usize, f: F) -> EncoderResult where F: FnOnce(&mut Encoder) -> EncoderResult
fn emit_tuple_struct_arg<F>(&mut self, idx: usize, f: F) -> EncoderResult where F: FnOnce(&mut Encoder) -> EncoderResult
fn emit_option<F>(&mut self, f: F) -> EncoderResult where F: FnOnce(&mut Encoder) -> EncoderResult
fn emit_option_none(&mut self) -> EncoderResult
fn emit_option_some<F>(&mut self, f: F) -> EncoderResult where F: FnOnce(&mut Encoder) -> EncoderResult
fn emit_seq<F>(&mut self, _len: usize, f: F) -> EncoderResult where F: FnOnce(&mut Encoder) -> EncoderResult
fn emit_seq_elt<F>(&mut self, _idx: usize, f: F) -> EncoderResult where F: FnOnce(&mut Encoder) -> EncoderResult
fn emit_map<F>(&mut self, _len: usize, f: F) -> EncoderResult where F: FnOnce(&mut Encoder) -> EncoderResult
fn emit_map_elt_key<F>(&mut self, _idx: usize, f: F) -> EncoderResult where F: FnOnce(&mut Encoder) -> EncoderResult
fn emit_map_elt_val<F>(&mut self, _idx: usize, f: F) -> EncoderResult where F: FnOnce(&mut Encoder) -> EncoderResult
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).
Search functions by type signature (e.g.
vec -> usize
)