pub struct Tile {
pub level: u8,
pub index: u64,
pub width: u16,
}Expand description
One tile: its level, its index within the level and how many hashes it
holds. width is 256 for a full tile and 1 to 255 for a partial one.
Fields§
§level: u80 for leaf hashes; each level up covers 256 times as many leaves.
index: u64Position within the level.
width: u16Hashes in the tile, 1 to 256.
Implementations§
Trait Implementations§
impl Copy for Tile
impl Eq for Tile
impl StructuralPartialEq for Tile
Auto Trait Implementations§
impl Freeze for Tile
impl RefUnwindSafe for Tile
impl Send for Tile
impl Sync for Tile
impl Unpin for Tile
impl UnsafeUnpin for Tile
impl UnwindSafe for Tile
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