Trait nop_json::WriteToJson [−][src]
Trait that can be automatically derived for structs and enums.
Example:
use nop_json::WriteToJson; #[derive(WriteToJson)] struct Point {x: i32, y: i32} let point = Point {x: 1, y: 2}; point.write_to_json(&mut std::io::stdout()).unwrap();
Required methods
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
Implementations on Foreign Types
impl<W: Write> WriteToJson<W> for ()[src]
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write> WriteToJson<W> for isize[src]
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write> WriteToJson<W> for i128[src]
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write> WriteToJson<W> for i64[src]
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write> WriteToJson<W> for i32[src]
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write> WriteToJson<W> for i16[src]
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write> WriteToJson<W> for i8[src]
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write> WriteToJson<W> for usize[src]
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write> WriteToJson<W> for u128[src]
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write> WriteToJson<W> for u64[src]
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write> WriteToJson<W> for u32[src]
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write> WriteToJson<W> for u16[src]
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write> WriteToJson<W> for u8[src]
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write> WriteToJson<W> for f64[src]
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write> WriteToJson<W> for f32[src]
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write> WriteToJson<W> for bool[src]
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write> WriteToJson<W> for char[src]
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write> WriteToJson<W> for String[src]
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write, T> WriteToJson<W> for Box<T> where
T: WriteToJson<W>, [src]
T: WriteToJson<W>,
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write, T> WriteToJson<W> for RwLock<T> where
T: WriteToJson<W>, [src]
T: WriteToJson<W>,
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write, T> WriteToJson<W> for Mutex<T> where
T: WriteToJson<W>, [src]
T: WriteToJson<W>,
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write, T> WriteToJson<W> for Rc<T> where
T: WriteToJson<W>, [src]
T: WriteToJson<W>,
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write, T> WriteToJson<W> for Arc<T> where
T: WriteToJson<W>, [src]
T: WriteToJson<W>,
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write, T> WriteToJson<W> for Option<T> where
T: WriteToJson<W>, [src]
T: WriteToJson<W>,
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write, T> WriteToJson<W> for Vec<T> where
T: WriteToJson<W>, [src]
T: WriteToJson<W>,
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write, T> WriteToJson<W> for HashSet<T> where
T: WriteToJson<W>, [src]
T: WriteToJson<W>,
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write, T> WriteToJson<W> for LinkedList<T> where
T: WriteToJson<W>, [src]
T: WriteToJson<W>,
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write, T> WriteToJson<W> for VecDeque<T> where
T: WriteToJson<W>, [src]
T: WriteToJson<W>,
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write, T> WriteToJson<W> for BTreeSet<T> where
T: WriteToJson<W>, [src]
T: WriteToJson<W>,
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write, T> WriteToJson<W> for HashMap<String, T> where
T: WriteToJson<W>, [src]
T: WriteToJson<W>,
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write, T> WriteToJson<W> for BTreeMap<String, T> where
T: WriteToJson<W>, [src]
T: WriteToJson<W>,
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write, A, B> WriteToJson<W> for (A, B) where
A: WriteToJson<W>,
B: WriteToJson<W>, [src]
A: WriteToJson<W>,
B: WriteToJson<W>,
fn write_to_json(&self, out: &mut W) -> Result<()>[src]
impl<W: Write, A, B, C> WriteToJson<W> for (A, B, C) where
A: WriteToJson<W>,
B: WriteToJson<W>,
C: WriteToJson<W>, [src]
A: WriteToJson<W>,
B: WriteToJson<W>,
C: WriteToJson<W>,