[−][src]Struct ndsparse::ArrayWrapper
Arbitrary length array wrapper. This structure is necessary for third-party and std implementations.
Methods
impl<const N: usize, T> ArrayWrapper<T, N>
[src]
pub fn new(array: [T; N]) -> ArrayWrapper<T, N>
[src]
Wraps array
into this structure.
Trait Implementations
impl<const N: usize, T> Array for ArrayWrapper<T, N>
[src]
impl<const N: usize, T> Array for ArrayWrapper<T, N>
[src]
type Index = usize
type Item = T
The array’s element type
const CAPACITY: usize
[src]
fn as_slice(&self) -> &[<ArrayWrapper<T, N> as Array>::Item]
[src]
fn as_mut_slice(&mut self) -> &mut [<ArrayWrapper<T, N> as Array>::Item]
[src]
impl<const N: usize, T> AsMut<[T; N]> for ArrayWrapper<T, N>
[src]
impl<const N: usize, T> AsMut<[T]> for ArrayWrapper<T, N>
[src]
impl<const N: usize, T> AsRef<[T; N]> for ArrayWrapper<T, N>
[src]
impl<const N: usize, T> AsRef<[T]> for ArrayWrapper<T, N>
[src]
impl<const N: usize, T> Borrow<[T; N]> for ArrayWrapper<T, N>
[src]
impl<const N: usize, T> Borrow<[T]> for ArrayWrapper<T, N>
[src]
impl<'_, const N: usize, T> Borrow<[T]> for &'_ ArrayWrapper<T, N>
[src]
impl<const N: usize, T> BorrowMut<[T; N]> for ArrayWrapper<T, N>
[src]
fn borrow_mut(&mut self) -> &mut [T; N]
[src]
impl<const N: usize, T> BorrowMut<[T]> for ArrayWrapper<T, N>
[src]
fn borrow_mut(&mut self) -> &mut [T]
[src]
impl<const N: usize, T> Clone for ArrayWrapper<T, N> where
T: Clone,
[src]
T: Clone,
fn clone(&self) -> ArrayWrapper<T, N>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<const N: usize, T> Copy for ArrayWrapper<T, N> where
T: Copy,
[src]
T: Copy,
impl<const N: usize, T> Debug for ArrayWrapper<T, N> where
T: Debug,
[src]
T: Debug,
impl<const N: usize, T> Default for ArrayWrapper<T, N> where
T: Default,
[src]
T: Default,
fn default() -> ArrayWrapper<T, N>
[src]
impl<const N: usize, T> Deref for ArrayWrapper<T, N>
[src]
type Target = [T; N]
The resulting type after dereferencing.
fn deref(&self) -> &<ArrayWrapper<T, N> as Deref>::Target
[src]
impl<const N: usize, T> DerefMut for ArrayWrapper<T, N>
[src]
impl<'de, const N: usize, T> Deserialize<'de> for ArrayWrapper<T, N> where
T: Deserialize<'de> + 'de,
[src]
T: Deserialize<'de> + 'de,
fn deserialize<D>(
deserializer: D
) -> Result<ArrayWrapper<T, N>, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<ArrayWrapper<T, N>, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl<const N: usize, T> Eq for ArrayWrapper<T, N> where
T: Eq,
[src]
T: Eq,
impl<const N: usize, T> From<[T; N]> for ArrayWrapper<T, N>
[src]
fn from(from: [T; N]) -> ArrayWrapper<T, N>
[src]
impl<const N: usize, T> From<ArrayWrapper<T, N>> for [T; N]
[src]
fn from(from: ArrayWrapper<T, N>) -> [T; N]
[src]
impl<const N: usize, I, T> Index<I> for ArrayWrapper<T, N> where
I: SliceIndex<[T]>,
[src]
I: SliceIndex<[T]>,
type Output = <I as SliceIndex<[T]>>::Output
The returned type after indexing.
fn index(&self, idx: I) -> &<ArrayWrapper<T, N> as Index<I>>::Output
[src]
impl<const N: usize, I, T> IndexMut<I> for ArrayWrapper<T, N> where
I: SliceIndex<[T]>,
[src]
I: SliceIndex<[T]>,
fn index_mut(&mut self, idx: I) -> &mut <ArrayWrapper<T, N> as Index<I>>::Output
[src]
impl<'a, const N: usize, T> IntoIterator for &'a mut ArrayWrapper<T, N>
[src]
type Item = &'a mut T
The type of the elements being iterated over.
type IntoIter = IterMut<'a, T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> <&'a mut ArrayWrapper<T, N> as IntoIterator>::IntoIter
[src]
impl<'a, const N: usize, T> IntoIterator for &'a ArrayWrapper<T, N>
[src]
type Item = &'a T
The type of the elements being iterated over.
type IntoIter = Iter<'a, T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> <&'a ArrayWrapper<T, N> as IntoIterator>::IntoIter
[src]
impl<const N: usize, T> Ord for ArrayWrapper<T, N> where
T: Ord,
[src]
T: Ord,
fn cmp(&self, other: &ArrayWrapper<T, N>) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<const N: usize, T> PartialEq<ArrayWrapper<T, N>> for ArrayWrapper<T, N> where
T: PartialEq<T>,
[src]
T: PartialEq<T>,
fn eq(&self, other: &ArrayWrapper<T, N>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<const N: usize, T> PartialOrd<ArrayWrapper<T, N>> for ArrayWrapper<T, N> where
T: PartialOrd<T>,
[src]
T: PartialOrd<T>,
fn partial_cmp(&self, other: &ArrayWrapper<T, N>) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<const N: usize, T> Serialize for ArrayWrapper<T, N> where
T: Serialize,
[src]
T: Serialize,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Auto Trait Implementations
impl<const N: usize, T> RefUnwindSafe for ArrayWrapper<T, N> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<const N: usize, T> Send for ArrayWrapper<T, N> where
T: Send,
T: Send,
impl<const N: usize, T> Sync for ArrayWrapper<T, N> where
T: Sync,
T: Sync,
impl<const N: usize, T> Unpin for ArrayWrapper<T, N> where
T: Unpin,
T: Unpin,
impl<const N: usize, T> UnwindSafe for ArrayWrapper<T, N> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,