Struct SimdFor
pub struct SimdFor<E, S>where
E: Entity,
S: Simd,{
pub simd: S,
__marker: PhantomData<E>,
}
Expand description
Wrapper for simd operations for type E
.
Fields§
§simd: S
Simd token.
__marker: PhantomData<E>
Implementations§
§impl<E, S> SimdFor<E, S>where
E: ComplexField,
S: Simd,
impl<E, S> SimdFor<E, S>where
E: ComplexField,
S: Simd,
pub fn align_offset(
self,
slice: SliceGroup<'_, E>,
) -> Offset<<E as Entity>::SimdMask<S>>
pub fn align_offset( self, slice: SliceGroup<'_, E>, ) -> Offset<<E as Entity>::SimdMask<S>>
Computes the alignment offset for subsequent aligned loads.
pub fn align_offset_ptr(
self,
ptr: <<E as Entity>::Group as ForType>::FaerOf<*const <E as Entity>::Unit>,
len: usize,
) -> Offset<<E as Entity>::SimdMask<S>>
pub fn align_offset_ptr( self, ptr: <<E as Entity>::Group as ForType>::FaerOf<*const <E as Entity>::Unit>, len: usize, ) -> Offset<<E as Entity>::SimdMask<S>>
Computes the alignment offset for subsequent aligned loads from a pointer.
pub fn as_simd(
self,
slice: SliceGroup<'_, E>,
) -> (SliceGroup<'_, E, <E as Entity>::SimdUnit<S>>, SliceGroup<'_, E>)
pub fn as_simd( self, slice: SliceGroup<'_, E>, ) -> (SliceGroup<'_, E, <E as Entity>::SimdUnit<S>>, SliceGroup<'_, E>)
Convert a slice to a slice over vector registers, and a scalar tail.
pub fn as_simd_mut(
self,
slice: SliceGroupMut<'_, E>,
) -> (SliceGroupMut<'_, E, <E as Entity>::SimdUnit<S>>, SliceGroupMut<'_, E>)
pub fn as_simd_mut( self, slice: SliceGroupMut<'_, E>, ) -> (SliceGroupMut<'_, E, <E as Entity>::SimdUnit<S>>, SliceGroupMut<'_, E>)
Convert a mutable slice to a slice over vector registers, and a scalar tail.
pub fn as_aligned_simd(
self,
slice: SliceGroup<'_, E>,
offset: Offset<<E as Entity>::SimdMask<S>>,
) -> (Prefix<'_, E, S>, SliceGroup<'_, E, <E as Entity>::SimdUnit<S>>, Suffix<'_, E, S>)
pub fn as_aligned_simd( self, slice: SliceGroup<'_, E>, offset: Offset<<E as Entity>::SimdMask<S>>, ) -> (Prefix<'_, E, S>, SliceGroup<'_, E, <E as Entity>::SimdUnit<S>>, Suffix<'_, E, S>)
Convert a slice to a partial register prefix and suffix, and a vector register slice (body).
pub fn as_aligned_simd_mut(
self,
slice: SliceGroupMut<'_, E>,
offset: Offset<<E as Entity>::SimdMask<S>>,
) -> (PrefixMut<'_, E, S>, SliceGroupMut<'_, E, <E as Entity>::SimdUnit<S>>, SuffixMut<'_, E, S>)
pub fn as_aligned_simd_mut( self, slice: SliceGroupMut<'_, E>, offset: Offset<<E as Entity>::SimdMask<S>>, ) -> (PrefixMut<'_, E, S>, SliceGroupMut<'_, E, <E as Entity>::SimdUnit<S>>, SuffixMut<'_, E, S>)
Convert a mutable slice to a partial register prefix and suffix, and a vector register slice (body).
pub fn splat(
self,
value: E,
) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
pub fn splat( self, value: E, ) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
Fill all the register lanes with the same value.
pub fn scalar_mul(self, lhs: E, rhs: E) -> E
pub fn scalar_mul(self, lhs: E, rhs: E) -> E
Returns lhs * rhs
.
pub fn scalar_conj_mul(self, lhs: E, rhs: E) -> E
pub fn scalar_conj_mul(self, lhs: E, rhs: E) -> E
Returns conj(lhs) * rhs
.
pub fn scalar_mul_add_e(self, lhs: E, rhs: E, acc: E) -> E
pub fn scalar_mul_add_e(self, lhs: E, rhs: E, acc: E) -> E
Returns an estimate of lhs * rhs + acc
.
pub fn scalar_conj_mul_add_e(self, lhs: E, rhs: E, acc: E) -> E
pub fn scalar_conj_mul_add_e(self, lhs: E, rhs: E, acc: E) -> E
Returns an estimate of conj(lhs) * rhs + acc
.
pub fn scalar_conditional_conj_mul<C>(self, conj: C, lhs: E, rhs: E) -> Ewhere
C: ConjTy,
pub fn scalar_conditional_conj_mul<C>(self, conj: C, lhs: E, rhs: E) -> Ewhere
C: ConjTy,
Returns an estimate of op(lhs) * rhs
, where op
is either the conjugation
or the identity operation.
pub fn scalar_conditional_conj_mul_add_e<C>(
self,
conj: C,
lhs: E,
rhs: E,
acc: E,
) -> Ewhere
C: ConjTy,
pub fn scalar_conditional_conj_mul_add_e<C>(
self,
conj: C,
lhs: E,
rhs: E,
acc: E,
) -> Ewhere
C: ConjTy,
Returns an estimate of op(lhs) * rhs + acc
, where op
is either the conjugation or
the identity operation.
pub fn add(
self,
lhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
rhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
pub fn add( self, lhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, rhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, ) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
Returns lhs + rhs
.
pub fn sub(
self,
lhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
rhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
pub fn sub( self, lhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, rhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, ) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
Returns lhs - rhs
.
pub fn neg(
self,
a: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
pub fn neg( self, a: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, ) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
Returns -a
.
pub fn scale_real(
self,
lhs: <<<E as ComplexField>::Real as Entity>::Group as ForCopyType>::FaerOfCopy<<<E as ComplexField>::Real as Entity>::SimdUnit<S>>,
rhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
pub fn scale_real( self, lhs: <<<E as ComplexField>::Real as Entity>::Group as ForCopyType>::FaerOfCopy<<<E as ComplexField>::Real as Entity>::SimdUnit<S>>, rhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, ) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
Returns lhs * rhs
.
pub fn mul(
self,
lhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
rhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
pub fn mul( self, lhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, rhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, ) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
Returns lhs * rhs
.
pub fn conj_mul(
self,
lhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
rhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
pub fn conj_mul( self, lhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, rhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, ) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
Returns conj(lhs) * rhs
.
pub fn conditional_conj_mul<C>(
self,
conj: C,
lhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
rhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>where
C: ConjTy,
pub fn conditional_conj_mul<C>(
self,
conj: C,
lhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
rhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>where
C: ConjTy,
Returns op(lhs) * rhs
, where op
is either the conjugation or the identity
operation.
pub fn mul_add_e(
self,
lhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
rhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
acc: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
pub fn mul_add_e( self, lhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, rhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, acc: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, ) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
Returns lhs * rhs + acc
.
pub fn conj_mul_add_e(
self,
lhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
rhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
acc: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
pub fn conj_mul_add_e( self, lhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, rhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, acc: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, ) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
Returns conj(lhs) * rhs + acc
.
pub fn conditional_conj_mul_add_e<C>(
self,
conj: C,
lhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
rhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
acc: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>where
C: ConjTy,
pub fn conditional_conj_mul_add_e<C>(
self,
conj: C,
lhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
rhs: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
acc: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>where
C: ConjTy,
Returns op(lhs) * rhs + acc
, where op
is either the conjugation or the identity
operation.
pub fn abs2_add_e(
self,
values: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
acc: <<<E as ComplexField>::Real as Entity>::Group as ForCopyType>::FaerOfCopy<<<E as ComplexField>::Real as Entity>::SimdUnit<S>>,
) -> <<<E as ComplexField>::Real as Entity>::Group as ForCopyType>::FaerOfCopy<<<E as ComplexField>::Real as Entity>::SimdUnit<S>>
pub fn abs2_add_e( self, values: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, acc: <<<E as ComplexField>::Real as Entity>::Group as ForCopyType>::FaerOfCopy<<<E as ComplexField>::Real as Entity>::SimdUnit<S>>, ) -> <<<E as ComplexField>::Real as Entity>::Group as ForCopyType>::FaerOfCopy<<<E as ComplexField>::Real as Entity>::SimdUnit<S>>
Returns abs(values) * abs(values) + acc
.
pub fn abs2(
self,
values: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
) -> <<<E as ComplexField>::Real as Entity>::Group as ForCopyType>::FaerOfCopy<<<E as ComplexField>::Real as Entity>::SimdUnit<S>>
pub fn abs2( self, values: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, ) -> <<<E as ComplexField>::Real as Entity>::Group as ForCopyType>::FaerOfCopy<<<E as ComplexField>::Real as Entity>::SimdUnit<S>>
Returns abs(values) * abs(values)
.
pub fn score(
self,
values: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
) -> <<<E as ComplexField>::Real as Entity>::Group as ForCopyType>::FaerOfCopy<<<E as ComplexField>::Real as Entity>::SimdUnit<S>>
pub fn score( self, values: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, ) -> <<<E as ComplexField>::Real as Entity>::Group as ForCopyType>::FaerOfCopy<<<E as ComplexField>::Real as Entity>::SimdUnit<S>>
Returns abs(values)
or abs(values) * abs(values)
, whichever is cheaper to compute.
pub fn reduce_add(
self,
values: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
) -> E
pub fn reduce_add( self, values: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, ) -> E
Sum the components of a vector register into a single accumulator.
pub fn rotate_left(
self,
values: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
amount: usize,
) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
pub fn rotate_left( self, values: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, amount: usize, ) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
Rotate values
to the left, with overflowing entries wrapping around to the right side
of the register.
§impl<E, S> SimdFor<E, S>where
E: RealField,
S: Simd,
impl<E, S> SimdFor<E, S>where
E: RealField,
S: Simd,
pub fn abs(
self,
values: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
) -> <<<E as ComplexField>::Real as Entity>::Group as ForCopyType>::FaerOfCopy<<<E as ComplexField>::Real as Entity>::SimdUnit<S>>
pub fn abs( self, values: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, ) -> <<<E as ComplexField>::Real as Entity>::Group as ForCopyType>::FaerOfCopy<<<E as ComplexField>::Real as Entity>::SimdUnit<S>>
Returns abs(values)
.
pub fn less_than(
self,
a: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
b: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
) -> <E as Entity>::SimdMask<S>
pub fn less_than( self, a: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, b: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, ) -> <E as Entity>::SimdMask<S>
Returns a < b
.
pub fn less_than_or_equal(
self,
a: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
b: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
) -> <E as Entity>::SimdMask<S>
pub fn less_than_or_equal( self, a: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, b: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, ) -> <E as Entity>::SimdMask<S>
Returns a <= b
.
pub fn greater_than(
self,
a: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
b: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
) -> <E as Entity>::SimdMask<S>
pub fn greater_than( self, a: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, b: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, ) -> <E as Entity>::SimdMask<S>
Returns a > b
.
pub fn greater_than_or_equal(
self,
a: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
b: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
) -> <E as Entity>::SimdMask<S>
pub fn greater_than_or_equal( self, a: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, b: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, ) -> <E as Entity>::SimdMask<S>
Returns a >= b
.
pub fn select(
self,
mask: <E as Entity>::SimdMask<S>,
if_true: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
if_false: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>,
) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
pub fn select( self, mask: <E as Entity>::SimdMask<S>, if_true: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, if_false: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>, ) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<<E as Entity>::SimdUnit<S>>
Returns if mask { if_true } else { if_false }
pub fn index_select(
self,
mask: <E as Entity>::SimdMask<S>,
if_true: <E as Entity>::SimdIndex<S>,
if_false: <E as Entity>::SimdIndex<S>,
) -> <E as Entity>::SimdIndex<S>
pub fn index_select( self, mask: <E as Entity>::SimdMask<S>, if_true: <E as Entity>::SimdIndex<S>, if_false: <E as Entity>::SimdIndex<S>, ) -> <E as Entity>::SimdIndex<S>
Returns if mask { if_true } else { if_false }
pub fn index_splat(
self,
value: <E as Entity>::Index,
) -> <E as Entity>::SimdIndex<S>
pub fn index_splat( self, value: <E as Entity>::Index, ) -> <E as Entity>::SimdIndex<S>
Fill all the register lanes with the same value.
Trait Implementations§
impl<E, S> Copy for SimdFor<E, S>where
E: Entity,
S: Simd,
Auto Trait Implementations§
impl<E, S> Freeze for SimdFor<E, S>where
S: Freeze,
impl<E, S> RefUnwindSafe for SimdFor<E, S>where
S: RefUnwindSafe,
E: RefUnwindSafe,
impl<E, S> Send for SimdFor<E, S>
impl<E, S> Sync for SimdFor<E, S>
impl<E, S> Unpin for SimdFor<E, S>
impl<E, S> UnwindSafe for SimdFor<E, S>where
S: UnwindSafe,
E: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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> ⓘ
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> ⓘ
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