pub struct MappedPermutation(/* private fields */);Expand description
A Permutation backed by a big-endian mmapped file
Implementations§
Source§impl MappedPermutation
impl MappedPermutation
Sourcepub fn new_unchecked(perm: Mmap) -> Self
pub fn new_unchecked(perm: Mmap) -> Self
Creates a permutation
Sourcepub fn new(perm: Mmap) -> Result<Self>
pub fn new(perm: Mmap) -> Result<Self>
Creates a permutation, or returns an error in case the permutation is incorrect
Sourcepub fn load_unchecked(path: &Path) -> Result<Self>
pub fn load_unchecked(path: &Path) -> Result<Self>
Loads a permutation from disk and returns IO errors if any.
This is an alias for Self::load_unchecked_with_flags with MmapFlags::RANDOM_ACCESS
Sourcepub fn load_unchecked_with_flags(path: &Path, flags: MmapFlags) -> Result<Self>
pub fn load_unchecked_with_flags(path: &Path, flags: MmapFlags) -> Result<Self>
Loads a permutation from disk and returns IO errors if any.
Sourcepub fn load(num_nodes: usize, path: &Path) -> Result<Self>
pub fn load(num_nodes: usize, path: &Path) -> Result<Self>
Loads a permutation from disk, and returns errors in case of IO errors or incorrect permutations.
This is an alias for Self::load_with_flags with MmapFlags::RANDOM_ACCESS
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MappedPermutation
impl RefUnwindSafe for MappedPermutation
impl Send for MappedPermutation
impl Sync for MappedPermutation
impl Unpin for MappedPermutation
impl UnsafeUnpin for MappedPermutation
impl UnwindSafe for MappedPermutation
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.