macro_rules! inspect_insert {
(@internal $node_writer:expr,) => { ... };
(@internal $node_writer:expr, var $key:ident: { $($sub:tt)+ }) => { ... };
(@internal $node_writer:expr, var $key:ident: { $($sub:tt)+ }, $($rest:tt)*) => { ... };
(@internal $node_writer:expr, var $key:ident: $val:expr) => { ... };
(@internal $node_writer:expr, var $key:ident: $val:expr, $($rest:tt)*) => { ... };
(@internal $node_writer:expr, var $key:ident?: $val:expr) => { ... };
(@internal $node_writer:expr, var $key:ident?: $val:expr, $($rest:tt)*) => { ... };
(@internal $node_writer:expr, $key:ident: $($rest:tt)+) => { ... };
(@internal $node_writer:expr, $key:ident?: $($rest:tt)+) => { ... };
(@internal $node_writer:expr, $key:expr => $($rest:tt)+) => { ... };
(@internal_inspect_log $node_writer:expr, { $($args:tt)* }) => { ... };
(@internal_inspect_log $node_writer:expr, $($args:tt)+) => { ... };
($node_writer:expr, { $($args:tt)+ }) => { ... };
($node_writer:expr, $($args:tt)+) => { ... };
}
Expand description
Macro to insert items using a Node. Each value must be a type that implements
WriteInspect
.
Example:
let node = ...; // fuchsia_inspect::Node
inspect_insert!(node, k1: "1", k2: 2i64, k3: "3");