pub fn set<'de>(
tree: &mut (impl TreeDeserialize<'de> + ?Sized),
path: &str,
data: &'de [u8],
) -> Result<usize, SerdeError<Error>>
Expand description
Update a node by path.
§Args
tree
- TheTreeDeserialize
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 SerdeError.