pub fn set<'de, T: TreeDeserialize<'de> + ?Sized>(
tree: &mut T,
path: &str,
data: &'de [u8],
) -> Result<usize, Error<Error>>
Expand description
Update a node by path.
§Args
tree
- The TreeDeserialize
to operate on.
path
- The path to the node. Everything before the first '/'
is ignored.
data
- The serialized data making up the content.
§Returns
The number of bytes consumed from data
or an Error.