fuchsia_inspect_contrib::log

Trait WriteInspect

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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>