pub trait InspectWritableNode<T: InspectWritable> {
    // Required methods
    fn new(data: &T, node: Node) -> Self;
    fn update(&self, data: &T);
    fn inspect_node(&self) -> &Node;
}
Expand description

A wrapper around an Inspect node and a collection of inspect fields. These fields are created and may updated using the contents of an InspectWritable struct. A struct implementing InspectWritableNode is automatically generated when the InspectWritable trait is derived.

Required Methods§

source

fn new(data: &T, node: Node) -> Self

Create a new instance, wrapping the supplied node. Inspect fields are created with names matching those in the InspectWritable struct and initialized to the values in data.

source

fn update(&self, data: &T)

Updates all inspect fields to the values in data.

source

fn inspect_node(&self) -> &Node

Returns a reference to the wrapped inspect Node.

Object Safety§

This trait is not object safe.

Implementors§