pub struct ShareUnit {
pub kind: &'static str,
pub id: [u8; 32],
pub len: u64,
}Expand description
One shareable unit: its kind, BLAKE3-256 content id, and exact byte length.
id is the same ephemeral relational namespace Id uses; it is never a
substitute for the whole-source SHA-256.
Fields§
§kind: &'static strUnit kind (one of the KIND_* constants).
id: [u8; 32]BLAKE3-256(bytes) of the unit.
len: u64Exact unit length in bytes.
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more