pub fn get(
tree: &(impl TreeSerialize + ?Sized),
path: &str,
data: &mut [u8],
) -> Result<usize, SerdeError<Error>>
Expand description
Retrieve a serialized value by path.
§Args
tree
- TheTreeDeserialize
to operate on.path
- The path to the node. Everything before the first'/'
is ignored.data
- The buffer to serialize the data into.
§Returns
The number of bytes used in the data
buffer or an SerdeError.