Function miniconf::json::get

source ·
pub fn get<T: TreeSerialize + ?Sized>(
    tree: &T,
    path: &str,
    data: &mut [u8],
) -> Result<usize, Error<Error>>
Expand description

Retrieve a serialized value by path.

§Args

  • tree - The TreeDeserialize 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 Error.