pub trait WriteInspect {
    // Required method
    fn write_inspect(&self, writer: &Node, key: impl Into<StringReference>);
}
Expand description

Trait for writing to a node in bounded lists.

Required Methods§

source

fn write_inspect(&self, writer: &Node, key: impl Into<StringReference>)

Write a single value (property or child node) to |node| with the specified |key|. If multiple properties need to be written, consider creating a single child node with those properties.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WriteInspect for &str

source§

fn write_inspect(&self, writer: &Node, key: impl Into<StringReference>)

source§

impl WriteInspect for bool

source§

fn write_inspect(&self, writer: &Node, key: impl Into<StringReference>)

source§

impl WriteInspect for f32

source§

fn write_inspect(&self, writer: &Node, key: impl Into<StringReference>)

source§

impl WriteInspect for f64

source§

fn write_inspect(&self, writer: &Node, key: impl Into<StringReference>)

source§

impl WriteInspect for i8

source§

fn write_inspect(&self, writer: &Node, key: impl Into<StringReference>)

source§

impl WriteInspect for i16

source§

fn write_inspect(&self, writer: &Node, key: impl Into<StringReference>)

source§

impl WriteInspect for i32

source§

fn write_inspect(&self, writer: &Node, key: impl Into<StringReference>)

source§

impl WriteInspect for i64

source§

fn write_inspect(&self, writer: &Node, key: impl Into<StringReference>)

source§

impl WriteInspect for u8

source§

fn write_inspect(&self, writer: &Node, key: impl Into<StringReference>)

source§

impl WriteInspect for u16

source§

fn write_inspect(&self, writer: &Node, key: impl Into<StringReference>)

source§

impl WriteInspect for u32

source§

fn write_inspect(&self, writer: &Node, key: impl Into<StringReference>)

source§

impl WriteInspect for u64

source§

fn write_inspect(&self, writer: &Node, key: impl Into<StringReference>)

source§

impl WriteInspect for String

source§

fn write_inspect(&self, writer: &Node, key: impl Into<StringReference>)

source§

impl<V: WriteInspect + ?Sized> WriteInspect for &V

source§

fn write_inspect(&self, writer: &Node, key: impl Into<StringReference>)

Implementors§

source§

impl<'a, T> WriteInspect for InspectList<'a, T>
where T: WriteInspect,

source§

impl<'a, T, F> WriteInspect for InspectListClosure<'a, T, F>
where F: Fn(&Node, &str, &T),

source§

impl<T: AsRef<[I]>, I: Into<u64> + Clone> WriteInspect for InspectUintArray<T, I>

source§

impl<T: AsRef<[u8]>> WriteInspect for InspectBytes<T>