pub struct OwnedPermutation<T: Sync + AsRef<[usize]>>(/* private fields */);Expand description
A Permutation backed by an usize vector
Implementations§
Source§impl<T: Sync + AsRef<[usize]> + AsMut<[usize]>> OwnedPermutation<T>
impl<T: Sync + AsRef<[usize]> + AsMut<[usize]>> OwnedPermutation<T>
Sourcepub fn compose_in_place<T2: Permutation + Sync>(
&mut self,
other: T2,
) -> Result<()>
pub fn compose_in_place<T2: Permutation + Sync>( &mut self, other: T2, ) -> Result<()>
Applies the other permutation to self, so self becomes a new permutation.
Source§impl OwnedPermutation<Vec<usize>>
impl OwnedPermutation<Vec<usize>>
Trait Implementations§
Source§impl<T: Sync + AsRef<[usize]>> Permutation for OwnedPermutation<T>
impl<T: Sync + AsRef<[usize]>> Permutation for OwnedPermutation<T>
Auto Trait Implementations§
impl<T> Freeze for OwnedPermutation<T>where
T: Freeze,
impl<T> RefUnwindSafe for OwnedPermutation<T>where
T: RefUnwindSafe,
impl<T> Send for OwnedPermutation<T>where
T: Send,
impl<T> Sync for OwnedPermutation<T>
impl<T> Unpin for OwnedPermutation<T>where
T: Unpin,
impl<T> UnwindSafe for OwnedPermutation<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BitFieldSlice<usize> for T
impl<T> BitFieldSlice<usize> for T
Source§impl<T> BitFieldSliceCore<usize> for T
impl<T> BitFieldSliceCore<usize> for T
Source§impl<T> BitFieldSliceMut<usize> for T
impl<T> BitFieldSliceMut<usize> for T
type ChunksMut<'a> = ChunksMut<'a, usize> where T: 'a
Source§unsafe fn set_unchecked(&mut self, index: usize, value: usize)
unsafe fn set_unchecked(&mut self, index: usize, value: usize)
Sets the element of the slice at the specified index.
No bounds checking is performed. Read more
Source§fn copy(&self, from: usize, dst: &mut T, to: usize, len: usize)
fn copy(&self, from: usize, dst: &mut T, to: usize, len: usize)
Copy part of the content of the vector to another vector. Read more
Source§fn try_chunks_mut(
&mut self,
chunk_size: usize,
) -> Result<<T as BitFieldSliceMut<usize>>::ChunksMut<'_>, ()>
fn try_chunks_mut( &mut self, chunk_size: usize, ) -> Result<<T as BitFieldSliceMut<usize>>::ChunksMut<'_>, ()>
Tries and returns an iterator over non-overlapping mutable chunks of a
bit-field slice, starting at the beginning of the slice. Read more
Source§fn as_mut_slice(&mut self) -> &mut [usize]
fn as_mut_slice(&mut self) -> &mut [usize]
Returns the backend of the slice as a mutable slice of
W.Source§fn set(&mut self, index: usize, value: W)
fn set(&mut self, index: usize, value: W)
Sets the element of the slice at the specified index. Read more
Source§unsafe fn apply_in_place_unchecked<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
unsafe fn apply_in_place_unchecked<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
Applies a function to all elements of the slice in place without
checking bit widths. Read more
Source§fn apply_in_place<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
fn apply_in_place<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
Applies a function to all elements of the slice in place. Read more
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, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
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> 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, 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
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.
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.