pub struct Permutation(/* private fields */);Expand description
A permutation for transpose.
Implementations§
Source§impl Permutation
impl Permutation
Sourcepub fn new(perm: impl IntoIterator<Item = usize>) -> Self
pub fn new(perm: impl IntoIterator<Item = usize>) -> Self
Creates a new permutation.
Sourcepub fn is_identity(&self) -> bool
pub fn is_identity(&self) -> bool
Returns true if this is the identity permutation.
Trait Implementations§
Source§impl Clone for Permutation
impl Clone for Permutation
Source§fn clone(&self) -> Permutation
fn clone(&self) -> Permutation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Permutation
impl Debug for Permutation
Source§impl<'de> Deserialize<'de> for Permutation
impl<'de> Deserialize<'de> for Permutation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Permutation
Source§impl PartialEq for Permutation
impl PartialEq for Permutation
Source§fn eq(&self, other: &Permutation) -> bool
fn eq(&self, other: &Permutation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Permutation
impl Serialize for Permutation
impl StructuralPartialEq for Permutation
Auto Trait Implementations§
impl Freeze for Permutation
impl RefUnwindSafe for Permutation
impl Send for Permutation
impl Sync for Permutation
impl Unpin for Permutation
impl UnsafeUnpin for Permutation
impl UnwindSafe for Permutation
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