pub struct Geometry { /* private fields */ }Implementations§
Source§impl Geometry
impl Geometry
pub const RECORD_BYTES: usize
pub const DATA_BYTES: usize
pub const FANOUT: u16 = 511
pub const MAX_PARTS: u32 = 32_630
pub const MAX_OBJECT_BYTES: u64 = 8_553_279_476
pub const MAX_NODES: u32 = 32_695
pub fn new(length: u64) -> Result<Geometry, Error>
pub fn length(self) -> u64
pub fn parts(self) -> u32
pub fn leaves(self) -> u16
pub fn nodes(self) -> u32
pub fn part_length(self, index: u32) -> Result<usize, Error>
pub fn leaf_entries(self, index: u16) -> Result<u16, Error>
Trait Implementations§
impl Copy for Geometry
impl Eq for Geometry
impl StructuralPartialEq for Geometry
Auto Trait Implementations§
impl Freeze for Geometry
impl RefUnwindSafe for Geometry
impl Send for Geometry
impl Sync for Geometry
impl Unpin for Geometry
impl UnsafeUnpin for Geometry
impl UnwindSafe for Geometry
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