Skip to main content

SCALAR

Struct SCALAR 

Source
pub struct SCALAR<DTypeStrategy> { /* private fields */ }
Expand description

Type that implements the ScalarArgMinMax trait.

This struct implements the ScalarArgMinMax trait for the different data types and their datatype strategies.

Trait Implementations§

Source§

impl SIMDArgMinMax<f32, __m128, __m128, LANE_SIZE, SCALAR<FloatIgnoreNaN>> for SSE<FloatIgnoreNaN>

Source§

unsafe fn argminmax(data: &[f32]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[f32]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[f32]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<f32, __m128i, __m128i, LANE_SIZE, SCALAR<FloatReturnNaN>> for SSE<FloatReturnNaN>

Source§

unsafe fn argminmax(data: &[f32]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[f32]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[f32]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<f32, __m256, __m256, LANE_SIZE, SCALAR<FloatIgnoreNaN>> for AVX2<FloatIgnoreNaN>

Source§

unsafe fn argminmax(data: &[f32]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[f32]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[f32]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<f32, __m256i, __m256i, LANE_SIZE, SCALAR<FloatReturnNaN>> for AVX2<FloatReturnNaN>

Source§

unsafe fn argminmax(data: &[f32]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[f32]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[f32]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<f32, __m512, u16, LANE_SIZE, SCALAR<FloatIgnoreNaN>> for AVX512<FloatIgnoreNaN>

Source§

unsafe fn argminmax(data: &[f32]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[f32]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[f32]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<f32, __m512i, u16, LANE_SIZE, SCALAR<FloatReturnNaN>> for AVX512<FloatReturnNaN>

Source§

unsafe fn argminmax(data: &[f32]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[f32]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[f32]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<f64, __m128d, __m128d, LANE_SIZE, SCALAR<FloatIgnoreNaN>> for SSE<FloatIgnoreNaN>

Source§

unsafe fn argminmax(data: &[f64]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[f64]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[f64]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<f64, __m128i, __m128i, LANE_SIZE, SCALAR<FloatReturnNaN>> for SSE<FloatReturnNaN>

Source§

unsafe fn argminmax(data: &[f64]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[f64]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[f64]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<f64, __m256d, __m256d, LANE_SIZE, SCALAR<FloatIgnoreNaN>> for AVX2<FloatIgnoreNaN>

Source§

unsafe fn argminmax(data: &[f64]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[f64]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[f64]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<f64, __m256i, __m256i, LANE_SIZE, SCALAR<FloatReturnNaN>> for AVX2<FloatReturnNaN>

Source§

unsafe fn argminmax(data: &[f64]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[f64]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[f64]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<f64, __m512d, u8, LANE_SIZE, SCALAR<FloatIgnoreNaN>> for AVX512<FloatIgnoreNaN>

Source§

unsafe fn argminmax(data: &[f64]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[f64]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[f64]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<f64, __m512i, u8, LANE_SIZE, SCALAR<FloatReturnNaN>> for AVX512<FloatReturnNaN>

Source§

unsafe fn argminmax(data: &[f64]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[f64]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[f64]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<i8, __m128i, __m128i, LANE_SIZE, SCALAR<Int>> for SSE<Int>

Source§

unsafe fn argminmax(data: &[i8]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[i8]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[i8]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<i8, __m256i, __m256i, LANE_SIZE, SCALAR<Int>> for AVX2<Int>

Source§

unsafe fn argminmax(data: &[i8]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[i8]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[i8]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<i8, __m512i, u64, LANE_SIZE, SCALAR<Int>> for AVX512<Int>

Source§

unsafe fn argminmax(data: &[i8]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[i8]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[i8]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<i16, __m128i, __m128i, LANE_SIZE, SCALAR<Int>> for SSE<Int>

Source§

unsafe fn argminmax(data: &[i16]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[i16]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[i16]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<i16, __m256i, __m256i, LANE_SIZE, SCALAR<Int>> for AVX2<Int>

Source§

unsafe fn argminmax(data: &[i16]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[i16]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[i16]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<i16, __m512i, u32, LANE_SIZE, SCALAR<Int>> for AVX512<Int>

Source§

unsafe fn argminmax(data: &[i16]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[i16]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[i16]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<i32, __m128i, __m128i, LANE_SIZE, SCALAR<Int>> for SSE<Int>

Source§

unsafe fn argminmax(data: &[i32]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[i32]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[i32]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<i32, __m256i, __m256i, LANE_SIZE, SCALAR<Int>> for AVX2<Int>

Source§

unsafe fn argminmax(data: &[i32]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[i32]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[i32]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<i32, __m512i, u16, LANE_SIZE, SCALAR<Int>> for AVX512<Int>

Source§

unsafe fn argminmax(data: &[i32]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[i32]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[i32]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<i64, __m128i, __m128i, LANE_SIZE, SCALAR<Int>> for SSE<Int>

Source§

unsafe fn argminmax(data: &[i64]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[i64]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[i64]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<i64, __m256i, __m256i, LANE_SIZE, SCALAR<Int>> for AVX2<Int>

Source§

unsafe fn argminmax(data: &[i64]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[i64]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[i64]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<i64, __m512i, u8, LANE_SIZE, SCALAR<Int>> for AVX512<Int>

Source§

unsafe fn argminmax(data: &[i64]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[i64]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[i64]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<u8, __m128i, __m128i, LANE_SIZE, SCALAR<Int>> for SSE<Int>

Source§

unsafe fn argminmax(data: &[u8]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[u8]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[u8]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<u8, __m256i, __m256i, LANE_SIZE, SCALAR<Int>> for AVX2<Int>

Source§

unsafe fn argminmax(data: &[u8]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[u8]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[u8]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<u8, __m512i, u64, LANE_SIZE, SCALAR<Int>> for AVX512<Int>

Source§

unsafe fn argminmax(data: &[u8]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[u8]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[u8]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<u16, __m128i, __m128i, LANE_SIZE, SCALAR<Int>> for SSE<Int>

Source§

unsafe fn argminmax(data: &[u16]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[u16]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[u16]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<u16, __m256i, __m256i, LANE_SIZE, SCALAR<Int>> for AVX2<Int>

Source§

unsafe fn argminmax(data: &[u16]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[u16]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[u16]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<u16, __m512i, u32, LANE_SIZE, SCALAR<Int>> for AVX512<Int>

Source§

unsafe fn argminmax(data: &[u16]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[u16]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[u16]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<u32, __m128i, __m128i, LANE_SIZE, SCALAR<Int>> for SSE<Int>

Source§

unsafe fn argminmax(data: &[u32]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[u32]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[u32]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<u32, __m256i, __m256i, LANE_SIZE, SCALAR<Int>> for AVX2<Int>

Source§

unsafe fn argminmax(data: &[u32]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[u32]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[u32]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<u32, __m512i, u16, LANE_SIZE, SCALAR<Int>> for AVX512<Int>

Source§

unsafe fn argminmax(data: &[u32]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[u32]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[u32]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<u64, __m128i, __m128i, LANE_SIZE, SCALAR<Int>> for SSE<Int>

Source§

unsafe fn argminmax(data: &[u64]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[u64]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[u64]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<u64, __m256i, __m256i, LANE_SIZE, SCALAR<Int>> for AVX2<Int>

Source§

unsafe fn argminmax(data: &[u64]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[u64]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[u64]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl SIMDArgMinMax<u64, __m512i, u8, LANE_SIZE, SCALAR<Int>> for AVX512<Int>

Source§

unsafe fn argminmax(data: &[u64]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

unsafe fn argmin(data: &[u64]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

unsafe fn argmax(data: &[u64]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl ScalarArgMinMax<f32> for SCALAR<FloatIgnoreNaN>

Source§

fn argminmax(arr: &[f32]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

fn argmin(arr: &[f32]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

fn argmax(arr: &[f32]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl ScalarArgMinMax<f32> for SCALAR<FloatReturnNaN>

Source§

fn argminmax(arr: &[f32]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

fn argmin(arr: &[f32]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

fn argmax(arr: &[f32]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl ScalarArgMinMax<f64> for SCALAR<FloatIgnoreNaN>

Source§

fn argminmax(arr: &[f64]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

fn argmin(arr: &[f64]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

fn argmax(arr: &[f64]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl ScalarArgMinMax<f64> for SCALAR<FloatReturnNaN>

Source§

fn argminmax(arr: &[f64]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

fn argmin(arr: &[f64]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

fn argmax(arr: &[f64]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl ScalarArgMinMax<i8> for SCALAR<Int>

Source§

fn argminmax(arr: &[i8]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

fn argmin(arr: &[i8]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

fn argmax(arr: &[i8]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl ScalarArgMinMax<i16> for SCALAR<Int>

Source§

fn argminmax(arr: &[i16]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

fn argmin(arr: &[i16]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

fn argmax(arr: &[i16]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl ScalarArgMinMax<i32> for SCALAR<Int>

Source§

fn argminmax(arr: &[i32]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

fn argmin(arr: &[i32]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

fn argmax(arr: &[i32]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl ScalarArgMinMax<i64> for SCALAR<Int>

Source§

fn argminmax(arr: &[i64]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

fn argmin(arr: &[i64]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

fn argmax(arr: &[i64]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl ScalarArgMinMax<u8> for SCALAR<Int>

Source§

fn argminmax(arr: &[u8]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

fn argmin(arr: &[u8]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

fn argmax(arr: &[u8]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl ScalarArgMinMax<u16> for SCALAR<Int>

Source§

fn argminmax(arr: &[u16]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

fn argmin(arr: &[u16]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

fn argmax(arr: &[u16]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl ScalarArgMinMax<u32> for SCALAR<Int>

Source§

fn argminmax(arr: &[u32]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

fn argmin(arr: &[u32]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

fn argmax(arr: &[u32]) -> usize

Get the index of the maximum value in the slice. Read more
Source§

impl ScalarArgMinMax<u64> for SCALAR<Int>

Source§

fn argminmax(arr: &[u64]) -> (usize, usize)

Get the index of the minimum and maximum values in the slice. Read more
Source§

fn argmin(arr: &[u64]) -> usize

Get the index of the minimum value in the slice. Read more
Source§

fn argmax(arr: &[u64]) -> usize

Get the index of the maximum value in the slice. Read more

Auto Trait Implementations§

§

impl<DTypeStrategy> Freeze for SCALAR<DTypeStrategy>

§

impl<DTypeStrategy> RefUnwindSafe for SCALAR<DTypeStrategy>
where DTypeStrategy: RefUnwindSafe,

§

impl<DTypeStrategy> Send for SCALAR<DTypeStrategy>
where DTypeStrategy: Send,

§

impl<DTypeStrategy> Sync for SCALAR<DTypeStrategy>
where DTypeStrategy: Sync,

§

impl<DTypeStrategy> Unpin for SCALAR<DTypeStrategy>
where DTypeStrategy: Unpin,

§

impl<DTypeStrategy> UnsafeUnpin for SCALAR<DTypeStrategy>

§

impl<DTypeStrategy> UnwindSafe for SCALAR<DTypeStrategy>
where DTypeStrategy: UnwindSafe,

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> 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, 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.