Struct quire::emit::Context
[−]
[src]
pub struct Context<'a> { // some fields omitted }
pub struct Context<'a> { // some fields omitted }
impl<'a> Context<'a>
[src]fn new<'x>(stream: &'x mut Write) -> Context<'x>
fn emit_tag_anchor(&mut self, tag: Option<Tag>, anchor: Option<Tag>, space: bool) -> IoResult<()>
fn emit_node(&mut self, node: &Node) -> IoResult<()>
fn emit_ast(&mut self, node: &Ast) -> IoResult<()>
impl<'a> Encoder for Context<'a>
[src]type Error = IoError
fn emit_nil(&mut self) -> Result<(), IoError>
fn emit_usize(&mut self, v: usize) -> Result<(), IoError>
fn emit_u64(&mut self, v: u64) -> Result<(), IoError>
fn emit_u32(&mut self, v: u32) -> Result<(), IoError>
fn emit_u16(&mut self, v: u16) -> Result<(), IoError>
fn emit_u8(&mut self, v: u8) -> Result<(), IoError>
fn emit_isize(&mut self, v: isize) -> Result<(), IoError>
fn emit_i64(&mut self, v: i64) -> Result<(), IoError>
fn emit_i32(&mut self, v: i32) -> Result<(), IoError>
fn emit_i16(&mut self, v: i16) -> Result<(), IoError>
fn emit_i8(&mut self, v: i8) -> Result<(), IoError>
fn emit_bool(&mut self, v: bool) -> Result<(), IoError>
fn emit_f64(&mut self, v: f64) -> Result<(), IoError>
fn emit_f32(&mut self, v: f32) -> Result<(), IoError>
fn emit_char(&mut self, v: char) -> Result<(), IoError>
fn emit_str(&mut self, v: &str) -> Result<(), IoError>
fn emit_enum<F>(&mut self, name: &str, f: F) -> Result<(), IoError>
fn emit_enum_variant<F>(&mut self, v_name: &str, v_id: usize, len: usize, f: F) -> Result<(), IoError>
fn emit_enum_variant_arg<F>(&mut self, a_idx: usize, f: F) -> Result<(), IoError>
fn emit_enum_struct_variant<F>(&mut self, v_name: &str, v_id: usize, len: usize, f: F) -> Result<(), IoError>
fn emit_enum_struct_variant_field<F>(&mut self, f_name: &str, f_idx: usize, f: F) -> Result<(), IoError>
fn emit_struct<F>(&mut self, name: &str, len: usize, f: F) -> Result<(), IoError> where F: FnOnce(&mut Self) -> Result<(), IoError>
fn emit_struct_field<F>(&mut self, f_name: &str, f_idx: usize, f: F) -> Result<(), IoError> where F: FnOnce(&mut Self) -> Result<(), IoError>
fn emit_tuple<F>(&mut self, len: usize, f: F) -> Result<(), IoError> where F: FnOnce(&mut Self) -> Result<(), IoError>
fn emit_tuple_arg<F>(&mut self, idx: usize, f: F) -> Result<(), IoError> where F: FnOnce(&mut Self) -> Result<(), IoError>
fn emit_tuple_struct<F>(&mut self, name: &str, len: usize, f: F) -> Result<(), IoError> where F: FnOnce(&mut Self) -> Result<(), IoError>
fn emit_tuple_struct_arg<F>(&mut self, f_idx: usize, f: F) -> Result<(), IoError> where F: FnOnce(&mut Self) -> Result<(), IoError>
fn emit_option<F>(&mut self, f: F) -> Result<(), IoError> where F: FnOnce(&mut Self) -> Result<(), IoError>
fn emit_option_none(&mut self) -> Result<(), IoError>
fn emit_option_some<F>(&mut self, f: F) -> Result<(), IoError> where F: FnOnce(&mut Self) -> Result<(), IoError>
fn emit_seq<F>(&mut self, len: usize, f: F) -> Result<(), IoError> where F: FnOnce(&mut Self) -> Result<(), IoError>
fn emit_seq_elt<F>(&mut self, idx: usize, f: F) -> Result<(), IoError> where F: FnOnce(&mut Self) -> Result<(), IoError>
fn emit_map<F>(&mut self, len: usize, f: F) -> Result<(), IoError> where F: FnOnce(&mut Self) -> Result<(), IoError>
fn emit_map_elt_key<F>(&mut self, idx: usize, f: F) -> Result<(), IoError> where F: FnOnce(&mut Self) -> Result<(), IoError>
fn emit_map_elt_val<F>(&mut self, idx: usize, f: F) -> Result<(), IoError> where F: FnOnce(&mut Self) -> Result<(), IoError>