pub fn leaf_from_bytes<T: BorshDeserialize>(bytes: &[u8]) -> Result<T, Error>
Deserialize a leaf from borsh bytes.