pub struct DefaultCollate;
Expand description

Default Collate function that mimic the default_collate function from PyTorch.

As they are no such lib with the same functionnality as PyTorch tensor in Rust, data is collated inside ndarray. Ndarray is the rust equivalent of numpy.ndarray with almost the same capabilities. Nevertheless, they can’t run on the GPU.

Basic transformation implemented for the default Collate :

  • Vec<Scalar> -> ndarray<scalar>
  • Vec<tuple> -> tuple(ndarray)
  • Vec<HashMap<Key, Value>> -> HasMap<Key, DefaultCollate::default().collate(Vec<Value>)
  • Vec<Array> -> Vec<Stack Array>
  • Vec[V1_i, V2_i, ...] -> Vec[DefaultCollate::default().collate([V1_1, V1_2, ...]), DefaultCollate::default().collate([V2_1, V2_2, ...]), ...]

Like for PyTorch version, String and u8 aren’t changed by the collation (No Op).

  • Vec<String> -> Vec<String>
  • Vec<&str> -> Vec<&str>
  • Vec<u8> -> Vec<u8>

Trait Implementations§

source§

impl Clone for DefaultCollate

source§

fn clone(&self) -> DefaultCollate

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
source§

impl<'a> Collate<&'a CStr> for DefaultCollate

§

type Output = Vec<&'a CStr, Global>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<&'a CStr>) -> Self::Output

Take a batch of samples and collate them
source§

impl<'a> Collate<&'a str> for DefaultCollate

§

type Output = Vec<&'a str, Global>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<&'a str>) -> Self::Output

Take a batch of samples and collate them
source§

impl<T> Collate<&T> for DefaultCollatewhere T: Clone, Self: Collate<T>,

We think it makes no sense to but a bench of reference into a Tensor. That’s why if the dataset yield reference a we clone them them. It is useful for having a non-consuming Iterator over the Dataloader.

§

type Output = <DefaultCollate as Collate<T>>::Output

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<&T>) -> Self::Output

Take a batch of samples and collate them
source§

impl<T, const N: usize> Collate<[T; N]> for DefaultCollatewhere Self: Collate<T>, T: Clone,

§

type Output = Vec<<DefaultCollate as Collate<T>>::Output, Global>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<[T; N]>) -> Self::Output

Take a batch of samples and collate them
source§

impl<A> Collate<(A,)> for DefaultCollatewhere A: Clone, DefaultCollate: Collate<A>,

§

type Output = (<DefaultCollate as Collate<A>>::Output,)

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<(A,)>) -> Self::Output

Take a batch of samples and collate them
source§

impl<A, B> Collate<(A, B)> for DefaultCollatewhere A: Clone, B: Clone, DefaultCollate: Collate<A> + Collate<B>,

§

type Output = (<DefaultCollate as Collate<A>>::Output, <DefaultCollate as Collate<B>>::Output)

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<(A, B)>) -> Self::Output

Take a batch of samples and collate them
source§

impl<A, B, C> Collate<(A, B, C)> for DefaultCollatewhere A: Clone, B: Clone, C: Clone, DefaultCollate: Collate<A> + Collate<B> + Collate<C>,

§

type Output = (<DefaultCollate as Collate<A>>::Output, <DefaultCollate as Collate<B>>::Output, <DefaultCollate as Collate<C>>::Output)

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<(A, B, C)>) -> Self::Output

Take a batch of samples and collate them
source§

impl<A, B, C, D> Collate<(A, B, C, D)> for DefaultCollatewhere A: Clone, B: Clone, C: Clone, D: Clone, DefaultCollate: Collate<A> + Collate<B> + Collate<C> + Collate<D>,

§

type Output = (<DefaultCollate as Collate<A>>::Output, <DefaultCollate as Collate<B>>::Output, <DefaultCollate as Collate<C>>::Output, <DefaultCollate as Collate<D>>::Output)

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<(A, B, C, D)>) -> Self::Output

Take a batch of samples and collate them
source§

impl<A, B, C, D, E> Collate<(A, B, C, D, E)> for DefaultCollatewhere A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, DefaultCollate: Collate<A> + Collate<B> + Collate<C> + Collate<D> + Collate<E>,

§

type Output = (<DefaultCollate as Collate<A>>::Output, <DefaultCollate as Collate<B>>::Output, <DefaultCollate as Collate<C>>::Output, <DefaultCollate as Collate<D>>::Output, <DefaultCollate as Collate<E>>::Output)

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<(A, B, C, D, E)>) -> Self::Output

Take a batch of samples and collate them
source§

impl<A, B, C, D, E, F> Collate<(A, B, C, D, E, F)> for DefaultCollatewhere A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, DefaultCollate: Collate<A> + Collate<B> + Collate<C> + Collate<D> + Collate<E> + Collate<F>,

§

type Output = (<DefaultCollate as Collate<A>>::Output, <DefaultCollate as Collate<B>>::Output, <DefaultCollate as Collate<C>>::Output, <DefaultCollate as Collate<D>>::Output, <DefaultCollate as Collate<E>>::Output, <DefaultCollate as Collate<F>>::Output)

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<(A, B, C, D, E, F)>) -> Self::Output

Take a batch of samples and collate them
source§

impl<A, B, C, D, E, F, G> Collate<(A, B, C, D, E, F, G)> for DefaultCollatewhere A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, G: Clone, DefaultCollate: Collate<A> + Collate<B> + Collate<C> + Collate<D> + Collate<E> + Collate<F> + Collate<G>,

§

type Output = (<DefaultCollate as Collate<A>>::Output, <DefaultCollate as Collate<B>>::Output, <DefaultCollate as Collate<C>>::Output, <DefaultCollate as Collate<D>>::Output, <DefaultCollate as Collate<E>>::Output, <DefaultCollate as Collate<F>>::Output, <DefaultCollate as Collate<G>>::Output)

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<(A, B, C, D, E, F, G)>) -> Self::Output

Take a batch of samples and collate them
source§

impl<A, B, C, D, E, F, G, H> Collate<(A, B, C, D, E, F, G, H)> for DefaultCollatewhere A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, G: Clone, H: Clone, DefaultCollate: Collate<A> + Collate<B> + Collate<C> + Collate<D> + Collate<E> + Collate<F> + Collate<G> + Collate<H>,

§

type Output = (<DefaultCollate as Collate<A>>::Output, <DefaultCollate as Collate<B>>::Output, <DefaultCollate as Collate<C>>::Output, <DefaultCollate as Collate<D>>::Output, <DefaultCollate as Collate<E>>::Output, <DefaultCollate as Collate<F>>::Output, <DefaultCollate as Collate<G>>::Output, <DefaultCollate as Collate<H>>::Output)

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<(A, B, C, D, E, F, G, H)>) -> Self::Output

Take a batch of samples and collate them
source§

impl<A, B, C, D, E, F, G, H, I> Collate<(A, B, C, D, E, F, G, H, I)> for DefaultCollatewhere A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, G: Clone, H: Clone, I: Clone, DefaultCollate: Collate<A> + Collate<B> + Collate<C> + Collate<D> + Collate<E> + Collate<F> + Collate<G> + Collate<H> + Collate<I>,

§

type Output = (<DefaultCollate as Collate<A>>::Output, <DefaultCollate as Collate<B>>::Output, <DefaultCollate as Collate<C>>::Output, <DefaultCollate as Collate<D>>::Output, <DefaultCollate as Collate<E>>::Output, <DefaultCollate as Collate<F>>::Output, <DefaultCollate as Collate<G>>::Output, <DefaultCollate as Collate<H>>::Output, <DefaultCollate as Collate<I>>::Output)

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<(A, B, C, D, E, F, G, H, I)>) -> Self::Output

Take a batch of samples and collate them
source§

impl<A, B, C, D, E, F, G, H, I, J> Collate<(A, B, C, D, E, F, G, H, I, J)> for DefaultCollatewhere A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, G: Clone, H: Clone, I: Clone, J: Clone, DefaultCollate: Collate<A> + Collate<B> + Collate<C> + Collate<D> + Collate<E> + Collate<F> + Collate<G> + Collate<H> + Collate<I> + Collate<J>,

§

type Output = (<DefaultCollate as Collate<A>>::Output, <DefaultCollate as Collate<B>>::Output, <DefaultCollate as Collate<C>>::Output, <DefaultCollate as Collate<D>>::Output, <DefaultCollate as Collate<E>>::Output, <DefaultCollate as Collate<F>>::Output, <DefaultCollate as Collate<G>>::Output, <DefaultCollate as Collate<H>>::Output, <DefaultCollate as Collate<I>>::Output, <DefaultCollate as Collate<J>>::Output)

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<(A, B, C, D, E, F, G, H, I, J)>) -> Self::Output

Take a batch of samples and collate them
source§

impl<A, B, C, D, E, F, G, H, I, J, K> Collate<(A, B, C, D, E, F, G, H, I, J, K)> for DefaultCollatewhere A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, G: Clone, H: Clone, I: Clone, J: Clone, K: Clone, DefaultCollate: Collate<A> + Collate<B> + Collate<C> + Collate<D> + Collate<E> + Collate<F> + Collate<G> + Collate<H> + Collate<I> + Collate<J> + Collate<K>,

§

type Output = (<DefaultCollate as Collate<A>>::Output, <DefaultCollate as Collate<B>>::Output, <DefaultCollate as Collate<C>>::Output, <DefaultCollate as Collate<D>>::Output, <DefaultCollate as Collate<E>>::Output, <DefaultCollate as Collate<F>>::Output, <DefaultCollate as Collate<G>>::Output, <DefaultCollate as Collate<H>>::Output, <DefaultCollate as Collate<I>>::Output, <DefaultCollate as Collate<J>>::Output, <DefaultCollate as Collate<K>>::Output)

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<(A, B, C, D, E, F, G, H, I, J, K)>) -> Self::Output

Take a batch of samples and collate them
source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> Collate<(A, B, C, D, E, F, G, H, I, J, K, L)> for DefaultCollatewhere A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, G: Clone, H: Clone, I: Clone, J: Clone, K: Clone, L: Clone, DefaultCollate: Collate<A> + Collate<B> + Collate<C> + Collate<D> + Collate<E> + Collate<F> + Collate<G> + Collate<H> + Collate<I> + Collate<J> + Collate<K> + Collate<L>,

§

type Output = (<DefaultCollate as Collate<A>>::Output, <DefaultCollate as Collate<B>>::Output, <DefaultCollate as Collate<C>>::Output, <DefaultCollate as Collate<D>>::Output, <DefaultCollate as Collate<E>>::Output, <DefaultCollate as Collate<F>>::Output, <DefaultCollate as Collate<G>>::Output, <DefaultCollate as Collate<H>>::Output, <DefaultCollate as Collate<I>>::Output, <DefaultCollate as Collate<J>>::Output, <DefaultCollate as Collate<K>>::Output, <DefaultCollate as Collate<L>>::Output)

The type of the collate function’s output
source§

fn collate( &self, batch: Vec<(A, B, C, D, E, F, G, H, I, J, K, L)> ) -> Self::Output

Take a batch of samples and collate them
source§

impl<A, D> Collate<ArrayBase<OwnedRepr<A>, D>> for DefaultCollatewhere A: Clone, D: Dimension, D::Larger: RemoveAxis,

§

type Output = ArrayBase<OwnedRepr<A>, <D as Dimension>::Larger>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<Array<A, D>>) -> Self::Output

Take a batch of samples and collate them
source§

impl<K, V> Collate<BTreeMap<K, V, Global>> for DefaultCollatewhere K: Ord + Clone, V: Clone, Self: Collate<V>,

§

type Output = BTreeMap<K, <DefaultCollate as Collate<V>>::Output, Global>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<BTreeMap<K, V>>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<CString> for DefaultCollate

§

type Output = Vec<CString, Global>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<CString>) -> Self::Output

Take a batch of samples and collate them
source§

impl<K, V, H> Collate<HashMap<K, V, H>> for DefaultCollatewhere K: Eq + Hash + Clone, V: Clone, Self: Collate<V>, H: BuildHasher,

§

type Output = HashMap<K, <DefaultCollate as Collate<V>>::Output, RandomState>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<HashMap<K, V, H>>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<NonZeroI128> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<NonZeroI128>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<NonZeroI128>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<NonZeroI16> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<NonZeroI16>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<NonZeroI16>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<NonZeroI32> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<NonZeroI32>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<NonZeroI32>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<NonZeroI64> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<NonZeroI64>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<NonZeroI64>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<NonZeroI8> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<NonZeroI8>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<NonZeroI8>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<NonZeroIsize> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<NonZeroIsize>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<NonZeroIsize>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<NonZeroU128> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<NonZeroU128>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<NonZeroU128>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<NonZeroU16> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<NonZeroU16>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<NonZeroU16>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<NonZeroU32> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<NonZeroU32>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<NonZeroU32>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<NonZeroU64> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<NonZeroU64>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<NonZeroU64>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<NonZeroU8> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<NonZeroU8>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<NonZeroU8>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<NonZeroUsize> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<NonZeroUsize>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<NonZeroUsize>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<OsString> for DefaultCollate

§

type Output = Vec<OsString, Global>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<OsString>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<String> for DefaultCollate

§

type Output = Vec<String, Global>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<String>) -> Self::Output

Take a batch of samples and collate them
source§

impl<T> Collate<Vec<T, Global>> for DefaultCollatewhere Self: Collate<T>, T: Clone,

§

type Output = Vec<<DefaultCollate as Collate<T>>::Output, Global>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<Vec<T>>) -> Self::Output

Take a batch of samples and collate them
source§

impl<T> Collate<VecDeque<T, Global>> for DefaultCollatewhere Self: Collate<T>, T: Clone,

§

type Output = Vec<<DefaultCollate as Collate<T>>::Output, Global>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<VecDeque<T>>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<bool> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<bool>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<bool>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<char> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<char>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<char>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<f32> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<f32>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<f32>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<f64> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<f64>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<i128> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<i128>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<i128>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<i16> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<i16>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<i16>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<i32> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<i32>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<i32>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<i64> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<i64>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<i64>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<i8> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<i8>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<i8>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<isize> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<isize>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<isize>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<u128> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<u128>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<u128>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<u16> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<u16>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<u16>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<u32> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<u32>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<u32>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<u64> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<u64>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<u64>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<u8> for DefaultCollate

NoOp for binairy, as pytorch default_collate function.

§

type Output = Vec<u8, Global>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<u8>) -> Self::Output

Take a batch of samples and collate them
source§

impl Collate<usize> for DefaultCollate

§

type Output = ArrayBase<OwnedRepr<usize>, Dim<[usize; 1]>>

The type of the collate function’s output
source§

fn collate(&self, batch: Vec<usize>) -> Self::Output

Take a batch of samples and collate them
source§

impl Debug for DefaultCollate

source§

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

Formats the value using the given formatter. Read more
source§

impl Default for DefaultCollate

source§

fn default() -> DefaultCollate

Returns the “default value” for a type. Read more
source§

impl Ord for DefaultCollate

source§

fn cmp(&self, other: &DefaultCollate) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<DefaultCollate> for DefaultCollate

source§

fn eq(&self, other: &DefaultCollate) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

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

impl PartialOrd<DefaultCollate> for DefaultCollate

source§

fn partial_cmp(&self, other: &DefaultCollate) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Eq for DefaultCollate

source§

impl StructuralEq for DefaultCollate

source§

impl StructuralPartialEq for DefaultCollate

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

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> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V