Skip to main content

try_decode_tree_node

Function try_decode_tree_node 

Source
pub fn try_decode_tree_node(data: &[u8]) -> Option<TreeNode>
Expand description

Try to decode data as a tree node Returns Some(TreeNode) if valid tree node, None otherwise This is preferred over is_tree_node() to avoid double decoding