orx_v

Struct D4

Source
pub struct D4;
Expand description

Four dimensions.

Trait Implementations§

Source§

impl Card<D4> for RectangularCardD4

Source§

fn is_rectangular(&self) -> bool

Returns true if the cardinality is bounded and rectangular; i.e, Read more
Source§

fn cardinality_of(&self, idx: impl Into<<D4 as Dim>::CardIdx>) -> usize

Returns the cardinality of the child of the vector at the given idx.
Source§

fn child_card(&self, i: usize) -> impl Card<<D4 as Dim>::PrevDim>

Returns the cardinality of the child of this vector at the given left_most_idx.
Source§

fn child_fun<T, F>( &self, i: usize, fun: F, ) -> impl Fn(<<D4 as Dim>::PrevDim as Dim>::Idx) -> T
where F: Fn(<D4 as Dim>::Idx) -> T,

Creates a function, say new_fun, which applies the first of the indices to left_most_index such that: Read more
Source§

fn vec_all<'a, T, N>(&'a self, vec: &'a N) -> impl Iterator<Item = T>
where N: NVec<D4, T> + 'a,

Returns an iterator over all elements of the vec provided that this is its cardinality.
Source§

fn vec_enumerate_all<'a, T, N>( &'a self, vec: &'a N, ) -> impl Iterator<Item = (<D4 as Dim>::Idx, T)>
where N: NVec<D4, T> + 'a,

Returns an iterator over all elements of the vec together with their corresponding indices provided that this is its cardinality.
Source§

impl<V: V3<usize>> Card<D4> for VariableCardD4<V>

Source§

fn is_rectangular(&self) -> bool

Returns true if the cardinality is bounded and rectangular; i.e, Read more
Source§

fn cardinality_of(&self, idx: impl Into<<D4 as Dim>::CardIdx>) -> usize

Returns the cardinality of the child of the vector at the given idx.
Source§

fn child_card(&self, i: usize) -> impl Card<<D4 as Dim>::PrevDim>

Returns the cardinality of the child of this vector at the given left_most_idx.
Source§

fn child_fun<T, F>( &self, i: usize, fun: F, ) -> impl Fn(<<D4 as Dim>::PrevDim as Dim>::Idx) -> T
where F: Fn(<D4 as Dim>::Idx) -> T,

Creates a function, say new_fun, which applies the first of the indices to left_most_index such that: Read more
Source§

fn vec_all<'a, T, N>(&'a self, vec: &'a N) -> impl Iterator<Item = T>
where N: NVec<D4, T> + 'a,

Returns an iterator over all elements of the vec provided that this is its cardinality.
Source§

fn vec_enumerate_all<'a, T, N>( &'a self, vec: &'a N, ) -> impl Iterator<Item = (<D4 as Dim>::Idx, T)>
where N: NVec<D4, T> + 'a,

Returns an iterator over all elements of the vec together with their corresponding indices provided that this is its cardinality.
Source§

impl CardIdx<D4> for IdxLeqD3

Source§

fn is_d0(&self) -> bool

Returns whether or not the index is of dimension 0; i.e., has type [usize; 0].
Source§

fn card<T>(self, vec: &impl NVecCore<D4, T>) -> usize

Returns the cardinality of the given vec at this index.
Source§

fn card_equality<T>( a: &impl NVecCore<D4, T>, b: &impl NVecCore<D4, T>, ) -> CardEquality<D4>

Returns the cardinality equality of the given vectors a and b at this index.
Source§

fn equality<T: PartialEq>( a: &impl NVec<D4, T>, b: &impl NVec<D4, T>, ) -> Equality<D4>

Returns the equality of the given vectors a and b at this index.
Source§

impl Clone for D4

Source§

fn clone(&self) -> D4

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

Source§

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

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

impl Dim for D4

Source§

type Idx = [usize; 4]

Index for this dimensionality.
Source§

type ChildIdx = usize

Index to reach a child of a structure with this dimension, while the child belongs to the previous dimension.
Source§

type PrevDim = D3

One level smaller dimension.
Source§

type CardIdx = IdxLeqD3

Union of indices that can be used to query cardinality of the vector’s any lower dimension children. Read more
Source§

type LeqIdx = IdxLeqD4

Union of indices that are less than or equal to this dimension.
Source§

fn dimension() -> usize

Name of the dimension.
Source§

fn left_join_from_lower_dim( left_most_idx: usize, lower_idx: <Self::PrevDim as Dim>::Idx, ) -> Self::Idx

Left joins the left_most_idx to lover_idx of dimension say N to get the index of dimension N+1.
Source§

fn left_join_from_lower_card_idx( left_most_idx: usize, lower_idx: <Self::PrevDim as Dim>::CardIdx, ) -> Self::CardIdx

Left joins the left_most_idx to lover_idx of dimension say N to get the index of dimension N+1.
Source§

fn in_bounds<T>(idx: impl IntoIdx<Self>, vec: &impl NVecCore<Self, T>) -> bool

Returns whether or not the idx is in bounds for the given vec.
Source§

impl IntoIdx<D4> for (usize, usize, usize, usize)

Source§

fn into_idx(self) -> <D4 as Dim>::Idx

Converts self into the standard index of dimension D.
Source§

impl LeqIdx<D4> for IdxLeqD4

Source§

fn in_leq_bounds<T>(self, vec: &impl NVecCore<D4, T>) -> bool

Checks whether or not this index is in bounds for the given vec.
Source§

impl<'a, C, T> NVec<D4, T> for &'a [C]
where C: NVec<<D4 as Dim>::PrevDim, T>,

Source§

fn at(&self, idx: impl IntoIdx<D4>) -> T

Returns the element at the idx-th position of the vector. Read more
Source§

fn child(&self, i: usize) -> impl NVec<<D4 as Dim>::PrevDim, T>

Returns the i-th child of the vector. Read more
Source§

fn all(&self) -> impl Iterator<Item = T>

Returns a flattened iterator over all scalar (D0) elements of the vector. Read more
Source§

fn num_children(&self) -> usize

Returns the number of children of the vector; i.e., number of elements of the one lower dimension. Read more
Source§

fn card(&self, idx: impl Into<D::CardIdx>) -> usize

Returns the cardinality of the vec in any of the lower dimensions. Read more
Source§

fn is_bounded(&self) -> bool

Returns whether or not the vector is bounded. Read more
Source§

fn is_rectangular(&self) -> bool

Returns whether or not the cardinalities of the vector are rectangular. A rectangular vector of dimension D has the same number of children at a given lower dimension for all indices. Read more
Source§

fn is_unbounded(&self) -> bool

Returns whether or not the vector is unbounded. Read more
Source§

fn in_bounds(&self, idx: impl Into<D::LeqIdx>) -> bool

Returns whether or not the given idx is in bounds. Read more
Source§

fn card_equality(&self, other: &impl NVec<D, T>) -> CardEquality<D>

Returns the cardinality equality of this vec with the other: Read more
Source§

fn try_at(&self, idx: impl IntoIdx<D>) -> Option<T>

Returns the element at the idx-th position of the vector if the index is in_bounds; returns None otherwise. Read more
Source§

fn equality(&self, other: &impl NVec<D, T>) -> Equality<D>
where T: PartialEq,

Returns the equality of this vec with the other: Read more
Source§

fn children(&self) -> impl Iterator<Item = impl NVec<D::PrevDim, T>>

Returns an iterator of all children of the vector. Read more
Source§

fn all_in( &self, indices: impl Iterator<Item = impl IntoIdx<D>>, ) -> impl Iterator<Item = T>

Returns an iterator of elements for the given indices. Read more
Source§

impl<'a, C, T> NVec<D4, T> for &'a mut [C]
where C: NVec<<D4 as Dim>::PrevDim, T>,

Source§

fn at(&self, idx: impl IntoIdx<D4>) -> T

Returns the element at the idx-th position of the vector. Read more
Source§

fn child(&self, i: usize) -> impl NVec<<D4 as Dim>::PrevDim, T>

Returns the i-th child of the vector. Read more
Source§

fn all(&self) -> impl Iterator<Item = T>

Returns a flattened iterator over all scalar (D0) elements of the vector. Read more
Source§

fn num_children(&self) -> usize

Returns the number of children of the vector; i.e., number of elements of the one lower dimension. Read more
Source§

fn card(&self, idx: impl Into<D::CardIdx>) -> usize

Returns the cardinality of the vec in any of the lower dimensions. Read more
Source§

fn is_bounded(&self) -> bool

Returns whether or not the vector is bounded. Read more
Source§

fn is_rectangular(&self) -> bool

Returns whether or not the cardinalities of the vector are rectangular. A rectangular vector of dimension D has the same number of children at a given lower dimension for all indices. Read more
Source§

fn is_unbounded(&self) -> bool

Returns whether or not the vector is unbounded. Read more
Source§

fn in_bounds(&self, idx: impl Into<D::LeqIdx>) -> bool

Returns whether or not the given idx is in bounds. Read more
Source§

fn card_equality(&self, other: &impl NVec<D, T>) -> CardEquality<D>

Returns the cardinality equality of this vec with the other: Read more
Source§

fn try_at(&self, idx: impl IntoIdx<D>) -> Option<T>

Returns the element at the idx-th position of the vector if the index is in_bounds; returns None otherwise. Read more
Source§

fn equality(&self, other: &impl NVec<D, T>) -> Equality<D>
where T: PartialEq,

Returns the equality of this vec with the other: Read more
Source§

fn children(&self) -> impl Iterator<Item = impl NVec<D::PrevDim, T>>

Returns an iterator of all children of the vector. Read more
Source§

fn all_in( &self, indices: impl Iterator<Item = impl IntoIdx<D>>, ) -> impl Iterator<Item = T>

Returns an iterator of elements for the given indices. Read more
Source§

impl<const N: usize, C, T> NVec<D4, T> for [C; N]
where C: NVec<<D4 as Dim>::PrevDim, T>,

Source§

fn at(&self, idx: impl IntoIdx<D4>) -> T

Returns the element at the idx-th position of the vector. Read more
Source§

fn child(&self, i: usize) -> impl NVec<<D4 as Dim>::PrevDim, T>

Returns the i-th child of the vector. Read more
Source§

fn all(&self) -> impl Iterator<Item = T>

Returns a flattened iterator over all scalar (D0) elements of the vector. Read more
Source§

fn num_children(&self) -> usize

Returns the number of children of the vector; i.e., number of elements of the one lower dimension. Read more
Source§

fn card(&self, idx: impl Into<D::CardIdx>) -> usize

Returns the cardinality of the vec in any of the lower dimensions. Read more
Source§

fn is_bounded(&self) -> bool

Returns whether or not the vector is bounded. Read more
Source§

fn is_rectangular(&self) -> bool

Returns whether or not the cardinalities of the vector are rectangular. A rectangular vector of dimension D has the same number of children at a given lower dimension for all indices. Read more
Source§

fn is_unbounded(&self) -> bool

Returns whether or not the vector is unbounded. Read more
Source§

fn in_bounds(&self, idx: impl Into<D::LeqIdx>) -> bool

Returns whether or not the given idx is in bounds. Read more
Source§

fn card_equality(&self, other: &impl NVec<D, T>) -> CardEquality<D>

Returns the cardinality equality of this vec with the other: Read more
Source§

fn try_at(&self, idx: impl IntoIdx<D>) -> Option<T>

Returns the element at the idx-th position of the vector if the index is in_bounds; returns None otherwise. Read more
Source§

fn equality(&self, other: &impl NVec<D, T>) -> Equality<D>
where T: PartialEq,

Returns the equality of this vec with the other: Read more
Source§

fn children(&self) -> impl Iterator<Item = impl NVec<D::PrevDim, T>>

Returns an iterator of all children of the vector. Read more
Source§

fn all_in( &self, indices: impl Iterator<Item = impl IntoIdx<D>>, ) -> impl Iterator<Item = T>

Returns an iterator of elements for the given indices. Read more
Source§

impl<T, V, C> NVec<D4, T> for CachedVec<D4, T, V, C>
where V: NVec<D4, T>, C: Cache<<D4 as Dim>::Idx, T>, T: Copy,

Source§

fn at(&self, idx: impl IntoIdx<D4>) -> T

Returns the element at the idx-th position of the vector. Read more
Source§

fn child(&self, i: <D4 as Dim>::ChildIdx) -> impl NVec<<D4 as Dim>::PrevDim, T>

Returns the i-th child of the vector. Read more
Source§

fn all(&self) -> impl Iterator<Item = T>

Returns a flattened iterator over all scalar (D0) elements of the vector. Read more
Source§

fn num_children(&self) -> usize

Returns the number of children of the vector; i.e., number of elements of the one lower dimension. Read more
Source§

fn card(&self, idx: impl Into<D::CardIdx>) -> usize

Returns the cardinality of the vec in any of the lower dimensions. Read more
Source§

fn is_bounded(&self) -> bool

Returns whether or not the vector is bounded. Read more
Source§

fn is_rectangular(&self) -> bool

Returns whether or not the cardinalities of the vector are rectangular. A rectangular vector of dimension D has the same number of children at a given lower dimension for all indices. Read more
Source§

fn is_unbounded(&self) -> bool

Returns whether or not the vector is unbounded. Read more
Source§

fn in_bounds(&self, idx: impl Into<D::LeqIdx>) -> bool

Returns whether or not the given idx is in bounds. Read more
Source§

fn card_equality(&self, other: &impl NVec<D, T>) -> CardEquality<D>

Returns the cardinality equality of this vec with the other: Read more
Source§

fn try_at(&self, idx: impl IntoIdx<D>) -> Option<T>

Returns the element at the idx-th position of the vector if the index is in_bounds; returns None otherwise. Read more
Source§

fn equality(&self, other: &impl NVec<D, T>) -> Equality<D>
where T: PartialEq,

Returns the equality of this vec with the other: Read more
Source§

fn children(&self) -> impl Iterator<Item = impl NVec<D::PrevDim, T>>

Returns an iterator of all children of the vector. Read more
Source§

fn all_in( &self, indices: impl Iterator<Item = impl IntoIdx<D>>, ) -> impl Iterator<Item = T>

Returns an iterator of elements for the given indices. Read more
Source§

impl<T, L, C> NVec<D4, T> for SparseVec<D4, T, C, L>
where T: Copy, L: Lookup<<D4 as Dim>::Idx, T>, C: Card<D4>,

Source§

fn at(&self, idx: impl IntoIdx<D4>) -> T

Returns the element at the idx-th position of the vector. Read more
Source§

fn in_bounds(&self, idx: impl Into<<D4 as Dim>::LeqIdx>) -> bool

Returns whether or not the given idx is in bounds. Read more
Source§

fn child(&self, i: <D4 as Dim>::ChildIdx) -> impl NVec<<D4 as Dim>::PrevDim, T>

Returns the i-th child of the vector. Read more
Source§

fn all(&self) -> impl Iterator<Item = T>

Returns a flattened iterator over all scalar (D0) elements of the vector. Read more
Source§

fn num_children(&self) -> usize

Returns the number of children of the vector; i.e., number of elements of the one lower dimension. Read more
Source§

fn card(&self, idx: impl Into<D::CardIdx>) -> usize

Returns the cardinality of the vec in any of the lower dimensions. Read more
Source§

fn is_bounded(&self) -> bool

Returns whether or not the vector is bounded. Read more
Source§

fn is_rectangular(&self) -> bool

Returns whether or not the cardinalities of the vector are rectangular. A rectangular vector of dimension D has the same number of children at a given lower dimension for all indices. Read more
Source§

fn is_unbounded(&self) -> bool

Returns whether or not the vector is unbounded. Read more
Source§

fn card_equality(&self, other: &impl NVec<D, T>) -> CardEquality<D>

Returns the cardinality equality of this vec with the other: Read more
Source§

fn try_at(&self, idx: impl IntoIdx<D>) -> Option<T>

Returns the element at the idx-th position of the vector if the index is in_bounds; returns None otherwise. Read more
Source§

fn equality(&self, other: &impl NVec<D, T>) -> Equality<D>
where T: PartialEq,

Returns the equality of this vec with the other: Read more
Source§

fn children(&self) -> impl Iterator<Item = impl NVec<D::PrevDim, T>>

Returns an iterator of all children of the vector. Read more
Source§

fn all_in( &self, indices: impl Iterator<Item = impl IntoIdx<D>>, ) -> impl Iterator<Item = T>

Returns an iterator of elements for the given indices. Read more
Source§

impl<T, C> NVec<D4, T> for Vec<C>
where C: NVec<<D4 as Dim>::PrevDim, T>,

Source§

fn at(&self, idx: impl IntoIdx<D4>) -> T

Returns the element at the idx-th position of the vector. Read more
Source§

fn child(&self, i: usize) -> impl NVec<<D4 as Dim>::PrevDim, T>

Returns the i-th child of the vector. Read more
Source§

fn all(&self) -> impl Iterator<Item = T>

Returns a flattened iterator over all scalar (D0) elements of the vector. Read more
Source§

fn num_children(&self) -> usize

Returns the number of children of the vector; i.e., number of elements of the one lower dimension. Read more
Source§

fn card(&self, idx: impl Into<D::CardIdx>) -> usize

Returns the cardinality of the vec in any of the lower dimensions. Read more
Source§

fn is_bounded(&self) -> bool

Returns whether or not the vector is bounded. Read more
Source§

fn is_rectangular(&self) -> bool

Returns whether or not the cardinalities of the vector are rectangular. A rectangular vector of dimension D has the same number of children at a given lower dimension for all indices. Read more
Source§

fn is_unbounded(&self) -> bool

Returns whether or not the vector is unbounded. Read more
Source§

fn in_bounds(&self, idx: impl Into<D::LeqIdx>) -> bool

Returns whether or not the given idx is in bounds. Read more
Source§

fn card_equality(&self, other: &impl NVec<D, T>) -> CardEquality<D>

Returns the cardinality equality of this vec with the other: Read more
Source§

fn try_at(&self, idx: impl IntoIdx<D>) -> Option<T>

Returns the element at the idx-th position of the vector if the index is in_bounds; returns None otherwise. Read more
Source§

fn equality(&self, other: &impl NVec<D, T>) -> Equality<D>
where T: PartialEq,

Returns the equality of this vec with the other: Read more
Source§

fn children(&self) -> impl Iterator<Item = impl NVec<D::PrevDim, T>>

Returns an iterator of all children of the vector. Read more
Source§

fn all_in( &self, indices: impl Iterator<Item = impl IntoIdx<D>>, ) -> impl Iterator<Item = T>

Returns an iterator of elements for the given indices. Read more
Source§

impl<'a, C, T> NVecMut<D4, T> for &'a mut [C]
where C: NVecMut<<D4 as Dim>::PrevDim, T>,

Source§

fn at_mut<Idx: IntoIdx<D4>>(&mut self, idx: Idx) -> &mut T

Returns a mutable reference to the element at the idx-th position of the vector. Read more
Source§

fn set<Idx: IntoIdx<D4>>(&mut self, idx: Idx, value: T)

Sets valueof the element at the idx-th position of the vector. Read more
Source§

fn child_mut( &mut self, i: <D4 as Dim>::ChildIdx, ) -> impl NVecMut<<D4 as Dim>::PrevDim, T>

Returns a mutable reference to the i-th child of the vector. Read more
Source§

fn mut_all<F>(&mut self, f: F)
where F: FnMut(&mut T),

Applies the mutating function f over all scalar elements of the vector. Read more
Source§

fn reset_all(&mut self, value: T)
where T: PartialEq + Copy,

Sets all elements of the vector to the given value. This method is often used at initialization stage of algorithms. Read more
Source§

fn try_at_mut(&mut self, idx: impl IntoIdx<D>) -> Option<&mut T>

Returns a mutable reference to the element at the idx-th position of the vector if the index is in_bounds; returns None otherwise. Read more
Source§

impl<const N: usize, C, T> NVecMut<D4, T> for [C; N]
where C: NVecMut<<D4 as Dim>::PrevDim, T>,

Source§

fn at_mut<Idx: IntoIdx<D4>>(&mut self, idx: Idx) -> &mut T

Returns a mutable reference to the element at the idx-th position of the vector. Read more
Source§

fn set<Idx: IntoIdx<D4>>(&mut self, idx: Idx, value: T)

Sets valueof the element at the idx-th position of the vector. Read more
Source§

fn child_mut( &mut self, i: <D4 as Dim>::ChildIdx, ) -> impl NVecMut<<D4 as Dim>::PrevDim, T>

Returns a mutable reference to the i-th child of the vector. Read more
Source§

fn mut_all<F>(&mut self, f: F)
where F: FnMut(&mut T),

Applies the mutating function f over all scalar elements of the vector. Read more
Source§

fn reset_all(&mut self, value: T)
where T: PartialEq + Copy,

Sets all elements of the vector to the given value. This method is often used at initialization stage of algorithms. Read more
Source§

fn try_at_mut(&mut self, idx: impl IntoIdx<D>) -> Option<&mut T>

Returns a mutable reference to the element at the idx-th position of the vector if the index is in_bounds; returns None otherwise. Read more
Source§

impl<T, L, C> NVecMut<D4, T> for SparseVec<D4, T, C, L>
where T: Copy, L: Lookup<<D4 as Dim>::Idx, T>, C: Card<D4>,

Source§

fn at_mut<Idx: IntoIdx<D4>>(&mut self, idx: Idx) -> &mut T

Returns a mutable reference to the element at the idx-th position of the vector. Read more
Source§

fn set<Idx: IntoIdx<D4>>(&mut self, idx: Idx, value: T)

Sets valueof the element at the idx-th position of the vector. Read more
Source§

fn child_mut( &mut self, i: <D4 as Dim>::ChildIdx, ) -> impl NVecMut<<D4 as Dim>::PrevDim, T>

Returns a mutable reference to the i-th child of the vector. Read more
Source§

fn mut_all<F>(&mut self, f: F)
where F: FnMut(&mut T),

Applies the mutating function f over all scalar elements of the vector. Read more
Source§

fn reset_all(&mut self, value: T)
where T: PartialEq + Copy,

Sets all elements of the vector to the given value. This method is often used at initialization stage of algorithms. Read more
Source§

fn try_at_mut(&mut self, idx: impl IntoIdx<D>) -> Option<&mut T>

Returns a mutable reference to the element at the idx-th position of the vector if the index is in_bounds; returns None otherwise. Read more
Source§

impl<T, C> NVecMut<D4, T> for Vec<C>
where C: NVecMut<<D4 as Dim>::PrevDim, T>,

Source§

fn at_mut<Idx: IntoIdx<D4>>(&mut self, idx: Idx) -> &mut T

Returns a mutable reference to the element at the idx-th position of the vector. Read more
Source§

fn set<Idx: IntoIdx<D4>>(&mut self, idx: Idx, value: T)

Sets valueof the element at the idx-th position of the vector. Read more
Source§

fn child_mut( &mut self, i: <D4 as Dim>::ChildIdx, ) -> impl NVecMut<<D4 as Dim>::PrevDim, T>

Returns a mutable reference to the i-th child of the vector. Read more
Source§

fn mut_all<F>(&mut self, f: F)
where F: FnMut(&mut T),

Applies the mutating function f over all scalar elements of the vector. Read more
Source§

fn reset_all(&mut self, value: T)
where T: PartialEq + Copy,

Sets all elements of the vector to the given value. This method is often used at initialization stage of algorithms. Read more
Source§

fn try_at_mut(&mut self, idx: impl IntoIdx<D>) -> Option<&mut T>

Returns a mutable reference to the element at the idx-th position of the vector if the index is in_bounds; returns None otherwise. Read more
Source§

impl PartialEq for D4

Source§

fn eq(&self, other: &D4) -> 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 Copy for D4

Source§

impl StructuralPartialEq for D4

Auto Trait Implementations§

§

impl Freeze for D4

§

impl RefUnwindSafe for D4

§

impl Send for D4

§

impl Sync for D4

§

impl Unpin for D4

§

impl UnwindSafe for D4

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 u8)

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