extendr_api::prelude::perm

Struct PermRef

pub struct PermRef<'a, I>
where I: Index,
{ pub(super) forward: &'a [I], pub(super) inverse: &'a [I], }
Expand description

Immutable permutation matrix view.

Fields§

§forward: &'a [I]§inverse: &'a [I]

Implementations§

§

impl<'a, I> PermRef<'a, I>
where I: Index,

pub fn as_ref(&self) -> PermRef<'_, I>

Convert self to a permutation view.

pub fn new_checked(forward: &'a [I], inverse: &'a [I]) -> PermRef<'a, I>

Creates a new permutation, by checking the validity of the inputs.

§Panics

The function panics if any of the following conditions are violated: forward and inverse must have the same length which must be less than or equal to I::Signed::MAX, be valid permutations, and be inverse permutations of each other.

pub unsafe fn new_unchecked( forward: &'a [I], inverse: &'a [I], ) -> PermRef<'a, I>

Creates a new permutation reference, without checking the validity of the inputs.

§Safety

forward and inverse must have the same length which must be less than or equal to I::Signed::MAX, be valid permutations, and be inverse permutations of each other.

pub fn arrays(self) -> (&'a [I], &'a [I])

Returns the permutation as an array.

pub fn len(&self) -> usize

Returns the dimension of the permutation.

pub fn inverse(self) -> PermRef<'a, I>

Returns the inverse permutation.

pub fn canonicalized(self) -> PermRef<'a, <I as Index>::FixedWidth>

Cast the permutation to the fixed width index type.

pub fn uncanonicalized<J>(self) -> PermRef<'a, J>
where J: Index,

Cast the permutation from the fixed width index type.

Trait Implementations§

§

impl<I> Clone for PermRef<'_, I>
where I: Index,

§

fn clone(&self) -> PermRef<'_, I>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<'a, I> Debug for PermRef<'a, I>
where I: Debug + Index,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'a, I> IntoConst for PermRef<'a, I>
where I: Index,

§

type Target = PermRef<'a, I>

§

fn into_const(self) -> <PermRef<'a, I> as IntoConst>::Target

§

impl<I, E> Mul<&Col<E>> for &PermRef<'_, I>

§

type Output = Col<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul(self, other: &Col<E>) -> <&PermRef<'_, I> as Mul<&Col<E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&Col<E>> for PermRef<'_, I>

§

type Output = Col<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul(self, other: &Col<E>) -> <PermRef<'_, I> as Mul<&Col<E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&ColMut<'_, E>> for &PermRef<'_, I>

§

type Output = Col<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: &ColMut<'_, E>, ) -> <&PermRef<'_, I> as Mul<&ColMut<'_, E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&ColMut<'_, E>> for PermRef<'_, I>

§

type Output = Col<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: &ColMut<'_, E>, ) -> <PermRef<'_, I> as Mul<&ColMut<'_, E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&ColRef<'_, E>> for &PermRef<'_, I>

§

type Output = Col<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: &ColRef<'_, E>, ) -> <&PermRef<'_, I> as Mul<&ColRef<'_, E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&ColRef<'_, E>> for PermRef<'_, I>

§

type Output = Col<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: &ColRef<'_, E>, ) -> <PermRef<'_, I> as Mul<&ColRef<'_, E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&Mat<E>> for &PermRef<'_, I>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul(self, other: &Mat<E>) -> <&PermRef<'_, I> as Mul<&Mat<E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&Mat<E>> for PermRef<'_, I>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul(self, other: &Mat<E>) -> <PermRef<'_, I> as Mul<&Mat<E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&MatMut<'_, E>> for &PermRef<'_, I>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: &MatMut<'_, E>, ) -> <&PermRef<'_, I> as Mul<&MatMut<'_, E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&MatMut<'_, E>> for PermRef<'_, I>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: &MatMut<'_, E>, ) -> <PermRef<'_, I> as Mul<&MatMut<'_, E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&MatRef<'_, E>> for &PermRef<'_, I>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: &MatRef<'_, E>, ) -> <&PermRef<'_, I> as Mul<&MatRef<'_, E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&MatRef<'_, E>> for PermRef<'_, I>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: &MatRef<'_, E>, ) -> <PermRef<'_, I> as Mul<&MatRef<'_, E>>>::Output

Performs the * operation. Read more
§

impl<I> Mul<&Perm<I>> for &PermRef<'_, I>
where I: Index,

§

type Output = Perm<I>

The resulting type after applying the * operator.
§

fn mul(self, other: &Perm<I>) -> <&PermRef<'_, I> as Mul<&Perm<I>>>::Output

Performs the * operation. Read more
§

impl<I> Mul<&Perm<I>> for PermRef<'_, I>
where I: Index,

§

type Output = Perm<I>

The resulting type after applying the * operator.
§

fn mul(self, other: &Perm<I>) -> <PermRef<'_, I> as Mul<&Perm<I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&PermRef<'_, I>> for &Mat<E>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: &PermRef<'_, I>, ) -> <&Mat<E> as Mul<&PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&PermRef<'_, I>> for &MatMut<'_, E>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: &PermRef<'_, I>, ) -> <&MatMut<'_, E> as Mul<&PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&PermRef<'_, I>> for &MatRef<'_, E>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: &PermRef<'_, I>, ) -> <&MatRef<'_, E> as Mul<&PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I> Mul<&PermRef<'_, I>> for &Perm<I>
where I: Index,

§

type Output = Perm<I>

The resulting type after applying the * operator.
§

fn mul( self, other: &PermRef<'_, I>, ) -> <&Perm<I> as Mul<&PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I> Mul<&PermRef<'_, I>> for &PermRef<'_, I>
where I: Index,

§

type Output = Perm<I>

The resulting type after applying the * operator.
§

fn mul( self, other: &PermRef<'_, I>, ) -> <&PermRef<'_, I> as Mul<&PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&PermRef<'_, I>> for &Row<E>

§

type Output = Row<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: &PermRef<'_, I>, ) -> <&Row<E> as Mul<&PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&PermRef<'_, I>> for &RowMut<'_, E>

§

type Output = Row<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: &PermRef<'_, I>, ) -> <&RowMut<'_, E> as Mul<&PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&PermRef<'_, I>> for &RowRef<'_, E>

§

type Output = Row<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: &PermRef<'_, I>, ) -> <&RowRef<'_, E> as Mul<&PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&PermRef<'_, I>> for Mat<E>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul(self, other: &PermRef<'_, I>) -> <Mat<E> as Mul<&PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&PermRef<'_, I>> for MatMut<'_, E>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: &PermRef<'_, I>, ) -> <MatMut<'_, E> as Mul<&PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&PermRef<'_, I>> for MatRef<'_, E>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: &PermRef<'_, I>, ) -> <MatRef<'_, E> as Mul<&PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I> Mul<&PermRef<'_, I>> for Perm<I>
where I: Index,

§

type Output = Perm<I>

The resulting type after applying the * operator.
§

fn mul( self, other: &PermRef<'_, I>, ) -> <Perm<I> as Mul<&PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I> Mul<&PermRef<'_, I>> for PermRef<'_, I>
where I: Index,

§

type Output = Perm<I>

The resulting type after applying the * operator.
§

fn mul( self, other: &PermRef<'_, I>, ) -> <PermRef<'_, I> as Mul<&PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&PermRef<'_, I>> for Row<E>

§

type Output = Row<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul(self, other: &PermRef<'_, I>) -> <Row<E> as Mul<&PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&PermRef<'_, I>> for RowMut<'_, E>

§

type Output = Row<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: &PermRef<'_, I>, ) -> <RowMut<'_, E> as Mul<&PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<&PermRef<'_, I>> for RowRef<'_, E>

§

type Output = Row<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: &PermRef<'_, I>, ) -> <RowRef<'_, E> as Mul<&PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<Col<E>> for &PermRef<'_, I>

§

type Output = Col<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul(self, other: Col<E>) -> <&PermRef<'_, I> as Mul<Col<E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<Col<E>> for PermRef<'_, I>

§

type Output = Col<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul(self, other: Col<E>) -> <PermRef<'_, I> as Mul<Col<E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<ColMut<'_, E>> for &PermRef<'_, I>

§

type Output = Col<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: ColMut<'_, E>, ) -> <&PermRef<'_, I> as Mul<ColMut<'_, E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<ColMut<'_, E>> for PermRef<'_, I>

§

type Output = Col<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: ColMut<'_, E>, ) -> <PermRef<'_, I> as Mul<ColMut<'_, E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<ColRef<'_, E>> for &PermRef<'_, I>

§

type Output = Col<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: ColRef<'_, E>, ) -> <&PermRef<'_, I> as Mul<ColRef<'_, E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<ColRef<'_, E>> for PermRef<'_, I>

§

type Output = Col<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, rhs: ColRef<'_, E>, ) -> <PermRef<'_, I> as Mul<ColRef<'_, E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<Mat<E>> for &PermRef<'_, I>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul(self, other: Mat<E>) -> <&PermRef<'_, I> as Mul<Mat<E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<Mat<E>> for PermRef<'_, I>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul(self, other: Mat<E>) -> <PermRef<'_, I> as Mul<Mat<E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<MatMut<'_, E>> for &PermRef<'_, I>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: MatMut<'_, E>, ) -> <&PermRef<'_, I> as Mul<MatMut<'_, E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<MatMut<'_, E>> for PermRef<'_, I>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: MatMut<'_, E>, ) -> <PermRef<'_, I> as Mul<MatMut<'_, E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<MatRef<'_, E>> for &PermRef<'_, I>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: MatRef<'_, E>, ) -> <&PermRef<'_, I> as Mul<MatRef<'_, E>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<MatRef<'_, E>> for PermRef<'_, I>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, rhs: MatRef<'_, E>, ) -> <PermRef<'_, I> as Mul<MatRef<'_, E>>>::Output

Performs the * operation. Read more
§

impl<I> Mul<Perm<I>> for &PermRef<'_, I>
where I: Index,

§

type Output = Perm<I>

The resulting type after applying the * operator.
§

fn mul(self, other: Perm<I>) -> <&PermRef<'_, I> as Mul<Perm<I>>>::Output

Performs the * operation. Read more
§

impl<I> Mul<Perm<I>> for PermRef<'_, I>
where I: Index,

§

type Output = Perm<I>

The resulting type after applying the * operator.
§

fn mul(self, other: Perm<I>) -> <PermRef<'_, I> as Mul<Perm<I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<PermRef<'_, I>> for &Mat<E>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul(self, other: PermRef<'_, I>) -> <&Mat<E> as Mul<PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<PermRef<'_, I>> for &MatMut<'_, E>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: PermRef<'_, I>, ) -> <&MatMut<'_, E> as Mul<PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<PermRef<'_, I>> for &MatRef<'_, E>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: PermRef<'_, I>, ) -> <&MatRef<'_, E> as Mul<PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I> Mul<PermRef<'_, I>> for &Perm<I>
where I: Index,

§

type Output = Perm<I>

The resulting type after applying the * operator.
§

fn mul(self, other: PermRef<'_, I>) -> <&Perm<I> as Mul<PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I> Mul<PermRef<'_, I>> for &PermRef<'_, I>
where I: Index,

§

type Output = Perm<I>

The resulting type after applying the * operator.
§

fn mul( self, other: PermRef<'_, I>, ) -> <&PermRef<'_, I> as Mul<PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<PermRef<'_, I>> for &Row<E>

§

type Output = Row<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul(self, other: PermRef<'_, I>) -> <&Row<E> as Mul<PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<PermRef<'_, I>> for &RowMut<'_, E>

§

type Output = Row<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: PermRef<'_, I>, ) -> <&RowMut<'_, E> as Mul<PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<PermRef<'_, I>> for &RowRef<'_, E>

§

type Output = Row<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: PermRef<'_, I>, ) -> <&RowRef<'_, E> as Mul<PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<PermRef<'_, I>> for Mat<E>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul(self, other: PermRef<'_, I>) -> <Mat<E> as Mul<PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<PermRef<'_, I>> for MatMut<'_, E>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: PermRef<'_, I>, ) -> <MatMut<'_, E> as Mul<PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<PermRef<'_, I>> for MatRef<'_, E>

§

type Output = Mat<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, rhs: PermRef<'_, I>, ) -> <MatRef<'_, E> as Mul<PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I> Mul<PermRef<'_, I>> for Perm<I>
where I: Index,

§

type Output = Perm<I>

The resulting type after applying the * operator.
§

fn mul(self, other: PermRef<'_, I>) -> <Perm<I> as Mul<PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I> Mul<PermRef<'_, I>> for PermRef<'_, I>
where I: Index,

§

type Output = Perm<I>

The resulting type after applying the * operator.
§

fn mul( self, rhs: PermRef<'_, I>, ) -> <PermRef<'_, I> as Mul<PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<PermRef<'_, I>> for Row<E>

§

type Output = Row<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul(self, other: PermRef<'_, I>) -> <Row<E> as Mul<PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<PermRef<'_, I>> for RowMut<'_, E>

§

type Output = Row<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, other: PermRef<'_, I>, ) -> <RowMut<'_, E> as Mul<PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I, E> Mul<PermRef<'_, I>> for RowRef<'_, E>

§

type Output = Row<<E as Conjugate>::Canonical>

The resulting type after applying the * operator.
§

fn mul( self, rhs: PermRef<'_, I>, ) -> <RowRef<'_, E> as Mul<PermRef<'_, I>>>::Output

Performs the * operation. Read more
§

impl<I> PartialEq<Perm<I>> for PermRef<'_, I>
where I: Index,

§

fn eq(&self, other: &Perm<I>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<I> PartialEq<PermRef<'_, I>> for Perm<I>
where I: Index,

§

fn eq(&self, other: &PermRef<'_, I>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<I> PartialEq<PermRef<'_, I>> for PermRef<'_, I>
where I: Index,

§

fn eq(&self, other: &PermRef<'_, I>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<'short, I> Reborrow<'short> for PermRef<'_, I>
where I: Index,

§

type Target = PermRef<'short, I>

§

fn rb(&'short self) -> <PermRef<'_, I> as Reborrow<'short>>::Target

§

impl<'short, I> ReborrowMut<'short> for PermRef<'_, I>
where I: Index,

§

type Target = PermRef<'short, I>

§

fn rb_mut(&'short mut self) -> <PermRef<'_, I> as ReborrowMut<'short>>::Target

§

impl<I> Copy for PermRef<'_, I>
where I: Index,

Auto Trait Implementations§

§

impl<'a, I> Freeze for PermRef<'a, I>

§

impl<'a, I> RefUnwindSafe for PermRef<'a, I>
where I: RefUnwindSafe,

§

impl<'a, I> Send for PermRef<'a, I>

§

impl<'a, I> Sync for PermRef<'a, I>

§

impl<'a, I> Unpin for PermRef<'a, I>

§

impl<'a, I> UnwindSafe for PermRef<'a, I>
where I: RefUnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Boilerplate for T
where T: Copy + Send + Sync + Debug + PartialEq + 'static,

§

impl<T> UniversalReborrow for T
where T: for<'a> Reborrow<'a>,

§

impl<T> UniversalReborrowMut for T
where T: for<'a> ReborrowMut<'a>,