Struct TorchCollate

Source
pub struct TorchCollate;
Available on crate feature tch only.
Expand description

Torch Collate function that mimic the default_collate function from PyTorch.

Data is collated inside a tch Tensor.

Basic transformation implemented for the default Collate :

  • Vec<Scalar> -> tch::Tensor<scalar>
  • Vec<tuple> -> tuple(ndarray)
  • Vec<HashMap<Key, Value>> -> HasMap<Key, TorchCollate::default().collate(Vec<Value>)
  • Vec<Array> -> Vec<Stack Array>
  • Vec[V1_i, V2_i, ...] -> Vec[TorchCollate::default().collate([V1_1, V1_2, ...]), TorchCollate::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 TorchCollate

Source§

fn clone(&self) -> TorchCollate

Returns a duplicate 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 TorchCollate

Source§

type Output = Vec<&'a CStr>

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<T> Collate<&T> for TorchCollate
where 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 and they we clone their value. It is useful for having a non-consuming Iterator over the Dataloader.

Source§

type Output = <TorchCollate 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<'a> Collate<&'a str> for TorchCollate

Source§

type Output = Vec<&'a str>

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, const N: usize> Collate<[T; N]> for TorchCollate
where Self: Collate<T>, T: Clone,

Source§

type Output = Vec<<TorchCollate as Collate<T>>::Output>

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 TorchCollate
where A: Clone, TorchCollate: Collate<A>,

Source§

type Output = (<TorchCollate 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 TorchCollate
where A: Clone, B: Clone, TorchCollate: Collate<A> + Collate<B>,

Source§

type Output = (<TorchCollate as Collate<A>>::Output, <TorchCollate 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 TorchCollate
where A: Clone, B: Clone, C: Clone, TorchCollate: Collate<A> + Collate<B> + Collate<C>,

Source§

type Output = (<TorchCollate as Collate<A>>::Output, <TorchCollate as Collate<B>>::Output, <TorchCollate 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 TorchCollate
where A: Clone, B: Clone, C: Clone, D: Clone, TorchCollate: Collate<A> + Collate<B> + Collate<C> + Collate<D>,

Source§

type Output = (<TorchCollate as Collate<A>>::Output, <TorchCollate as Collate<B>>::Output, <TorchCollate as Collate<C>>::Output, <TorchCollate 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 TorchCollate
where A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, TorchCollate: Collate<A> + Collate<B> + Collate<C> + Collate<D> + Collate<E>,

Source§

type Output = (<TorchCollate as Collate<A>>::Output, <TorchCollate as Collate<B>>::Output, <TorchCollate as Collate<C>>::Output, <TorchCollate as Collate<D>>::Output, <TorchCollate 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 TorchCollate
where A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, TorchCollate: Collate<A> + Collate<B> + Collate<C> + Collate<D> + Collate<E> + Collate<F>,

Source§

type Output = (<TorchCollate as Collate<A>>::Output, <TorchCollate as Collate<B>>::Output, <TorchCollate as Collate<C>>::Output, <TorchCollate as Collate<D>>::Output, <TorchCollate as Collate<E>>::Output, <TorchCollate 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 TorchCollate
where A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, G: Clone, TorchCollate: Collate<A> + Collate<B> + Collate<C> + Collate<D> + Collate<E> + Collate<F> + Collate<G>,

Source§

type Output = (<TorchCollate as Collate<A>>::Output, <TorchCollate as Collate<B>>::Output, <TorchCollate as Collate<C>>::Output, <TorchCollate as Collate<D>>::Output, <TorchCollate as Collate<E>>::Output, <TorchCollate as Collate<F>>::Output, <TorchCollate 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 TorchCollate
where A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, G: Clone, H: Clone, TorchCollate: Collate<A> + Collate<B> + Collate<C> + Collate<D> + Collate<E> + Collate<F> + Collate<G> + Collate<H>,

Source§

type Output = (<TorchCollate as Collate<A>>::Output, <TorchCollate as Collate<B>>::Output, <TorchCollate as Collate<C>>::Output, <TorchCollate as Collate<D>>::Output, <TorchCollate as Collate<E>>::Output, <TorchCollate as Collate<F>>::Output, <TorchCollate as Collate<G>>::Output, <TorchCollate 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 TorchCollate
where A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, G: Clone, H: Clone, I: Clone, TorchCollate: Collate<A> + Collate<B> + Collate<C> + Collate<D> + Collate<E> + Collate<F> + Collate<G> + Collate<H> + Collate<I>,

Source§

type Output = (<TorchCollate as Collate<A>>::Output, <TorchCollate as Collate<B>>::Output, <TorchCollate as Collate<C>>::Output, <TorchCollate as Collate<D>>::Output, <TorchCollate as Collate<E>>::Output, <TorchCollate as Collate<F>>::Output, <TorchCollate as Collate<G>>::Output, <TorchCollate as Collate<H>>::Output, <TorchCollate 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 TorchCollate
where A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, G: Clone, H: Clone, I: Clone, J: Clone, TorchCollate: Collate<A> + Collate<B> + Collate<C> + Collate<D> + Collate<E> + Collate<F> + Collate<G> + Collate<H> + Collate<I> + Collate<J>,

Source§

type Output = (<TorchCollate as Collate<A>>::Output, <TorchCollate as Collate<B>>::Output, <TorchCollate as Collate<C>>::Output, <TorchCollate as Collate<D>>::Output, <TorchCollate as Collate<E>>::Output, <TorchCollate as Collate<F>>::Output, <TorchCollate as Collate<G>>::Output, <TorchCollate as Collate<H>>::Output, <TorchCollate as Collate<I>>::Output, <TorchCollate 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 TorchCollate
where A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, G: Clone, H: Clone, I: Clone, J: Clone, K: Clone, TorchCollate: Collate<A> + Collate<B> + Collate<C> + Collate<D> + Collate<E> + Collate<F> + Collate<G> + Collate<H> + Collate<I> + Collate<J> + Collate<K>,

Source§

type Output = (<TorchCollate as Collate<A>>::Output, <TorchCollate as Collate<B>>::Output, <TorchCollate as Collate<C>>::Output, <TorchCollate as Collate<D>>::Output, <TorchCollate as Collate<E>>::Output, <TorchCollate as Collate<F>>::Output, <TorchCollate as Collate<G>>::Output, <TorchCollate as Collate<H>>::Output, <TorchCollate as Collate<I>>::Output, <TorchCollate as Collate<J>>::Output, <TorchCollate 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 TorchCollate
where A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, G: Clone, H: Clone, I: Clone, J: Clone, K: Clone, L: Clone, TorchCollate: Collate<A> + Collate<B> + Collate<C> + Collate<D> + Collate<E> + Collate<F> + Collate<G> + Collate<H> + Collate<I> + Collate<J> + Collate<K> + Collate<L>,

Source§

type Output = (<TorchCollate as Collate<A>>::Output, <TorchCollate as Collate<B>>::Output, <TorchCollate as Collate<C>>::Output, <TorchCollate as Collate<D>>::Output, <TorchCollate as Collate<E>>::Output, <TorchCollate as Collate<F>>::Output, <TorchCollate as Collate<G>>::Output, <TorchCollate as Collate<H>>::Output, <TorchCollate as Collate<I>>::Output, <TorchCollate as Collate<J>>::Output, <TorchCollate as Collate<K>>::Output, <TorchCollate 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 TorchCollate
where A: Clone + Element, D: Dimension, D::Larger: RemoveAxis,

Source§

type Output = Tensor

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>> for TorchCollate
where K: Ord + Clone, V: Clone, Self: Collate<V>,

Source§

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

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 TorchCollate

Source§

type Output = Vec<CString>

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 TorchCollate
where K: Eq + Hash + Clone, V: Clone, Self: Collate<V>, H: BuildHasher,

Source§

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

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<NonZero<i128>> for TorchCollate

Source§

type Output = ArrayBase<OwnedRepr<NonZero<i128>>, 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<NonZero<i16>> for TorchCollate

Source§

type Output = ArrayBase<OwnedRepr<NonZero<i16>>, 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<NonZero<i32>> for TorchCollate

Source§

type Output = ArrayBase<OwnedRepr<NonZero<i32>>, 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<NonZero<i64>> for TorchCollate

Source§

type Output = ArrayBase<OwnedRepr<NonZero<i64>>, 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<NonZero<i8>> for TorchCollate

Source§

type Output = ArrayBase<OwnedRepr<NonZero<i8>>, 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<NonZero<isize>> for TorchCollate

Source§

type Output = ArrayBase<OwnedRepr<NonZero<isize>>, 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<NonZero<u128>> for TorchCollate

Source§

type Output = ArrayBase<OwnedRepr<NonZero<u128>>, 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<NonZero<u16>> for TorchCollate

Source§

type Output = ArrayBase<OwnedRepr<NonZero<u16>>, 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<NonZero<u32>> for TorchCollate

Source§

type Output = ArrayBase<OwnedRepr<NonZero<u32>>, 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<NonZero<u64>> for TorchCollate

Source§

type Output = ArrayBase<OwnedRepr<NonZero<u64>>, 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<NonZero<u8>> for TorchCollate

Source§

type Output = ArrayBase<OwnedRepr<NonZero<u8>>, 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<NonZero<usize>> for TorchCollate

Source§

type Output = ArrayBase<OwnedRepr<NonZero<usize>>, 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 TorchCollate

Source§

type Output = Vec<OsString>

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 TorchCollate

Source§

type Output = Vec<String>

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>> for TorchCollate
where Self: Collate<T>, T: Clone,

Source§

type Output = Vec<<TorchCollate as Collate<T>>::Output>

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>> for TorchCollate
where Self: Collate<T>, T: Clone,

Source§

type Output = Vec<<TorchCollate as Collate<T>>::Output>

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 TorchCollate

Source§

type Output = Tensor

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<f32> for TorchCollate

Source§

type Output = Tensor

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 TorchCollate

Source§

type Output = Tensor

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<i16> for TorchCollate

Source§

type Output = Tensor

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 TorchCollate

Source§

type Output = Tensor

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 TorchCollate

Source§

type Output = Tensor

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 TorchCollate

Source§

type Output = Tensor

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<u8> for TorchCollate

NoOp for binary, as pytorch default_collate function.

Source§

type Output = Vec<u8>

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 Debug for TorchCollate

Source§

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

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

impl Default for TorchCollate

Source§

fn default() -> TorchCollate

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

impl Ord for TorchCollate

Source§

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

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

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

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

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

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

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

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

impl PartialEq for TorchCollate

Source§

fn eq(&self, other: &TorchCollate) -> 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.
Source§

impl PartialOrd for TorchCollate

Source§

fn partial_cmp(&self, other: &TorchCollate) -> 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

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

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

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Eq for TorchCollate

Source§

impl StructuralPartialEq for TorchCollate

Auto Trait Implementations§

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

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

Initializes a with the given initializer. Read more
Source§

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

Dereferences the given pointer. Read more
Source§

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

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

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

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V