pub struct Metadata { /* private fields */ }Expand description
8-byte header at the start of a DiskANN binary file: npoints and ndims as little-endian u32.
Implementations§
Source§impl Metadata
impl Metadata
Sourcepub fn new<T, U>(
npoints: T,
ndims: U,
) -> Result<Self, MetadataError<T::Error, U::Error>>
pub fn new<T, U>( npoints: T, ndims: U, ) -> Result<Self, MetadataError<T::Error, U::Error>>
Construct from any integer types that fit in u32.
Sourcepub fn npoints_u32(&self) -> u32
pub fn npoints_u32(&self) -> u32
Number of points as u32.
Trait Implementations§
impl Copy for Metadata
impl Eq for Metadata
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnsafeUnpin for Metadata
impl UnwindSafe for Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more