pub fn leaf_to_bytes<T: BorshSerialize>(leaf: &T) -> Vec<u8> ⓘ
Serialize a leaf to bytes using borsh for deterministic encoding.