#[repr(transparent)]pub struct SingleVector<T>(pub T);
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T> AsMut<[T]> for SingleVector<T>
impl<T> AsMut<[T]> for SingleVector<T>
Source§impl<T> AsMut<T> for SingleVector<T>
impl<T> AsMut<T> for SingleVector<T>
Source§impl<T> AsRef<[T]> for SingleVector<T>
impl<T> AsRef<[T]> for SingleVector<T>
Source§impl<T> AsRef<T> for SingleVector<T>
impl<T> AsRef<T> for SingleVector<T>
Source§impl<T> Borrow<[T]> for SingleVector<T>
impl<T> Borrow<[T]> for SingleVector<T>
Source§impl<T> Borrow<T> for SingleVector<T>
impl<T> Borrow<T> for SingleVector<T>
Source§impl<T> BorrowMut<[T]> for SingleVector<T>
impl<T> BorrowMut<[T]> for SingleVector<T>
Source§fn borrow_mut(&mut self) -> &mut [T]
fn borrow_mut(&mut self) -> &mut [T]
Mutably borrows from an owned value. Read more
Source§impl<T> BorrowMut<T> for SingleVector<T>
impl<T> BorrowMut<T> for SingleVector<T>
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T: Clone> Clone for SingleVector<T>
impl<T: Clone> Clone for SingleVector<T>
Source§fn clone(&self) -> SingleVector<T>
fn clone(&self) -> SingleVector<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for SingleVector<T>
impl<T: Debug> Debug for SingleVector<T>
Source§impl<T: Default> Default for SingleVector<T>
impl<T: Default> Default for SingleVector<T>
Source§fn default() -> SingleVector<T>
fn default() -> SingleVector<T>
Returns the “default value” for a type. Read more
Source§impl<T> Deref for SingleVector<T>
impl<T> Deref for SingleVector<T>
Source§impl<T> DerefMut for SingleVector<T>
impl<T> DerefMut for SingleVector<T>
Source§impl<T: Hash> Hash for SingleVector<T>
impl<T: Hash> Hash for SingleVector<T>
Source§impl<T: Initialize> Initialize for SingleVector<T>
impl<T: Initialize> Initialize for SingleVector<T>
type Item = <T as Initialize>::Item
Source§fn as_maybe_uninit_slice(&self) -> &[MaybeUninit<Self::Item>]
fn as_maybe_uninit_slice(&self) -> &[MaybeUninit<Self::Item>]
Retrieve an immutable slice pointing to possibly uninitialized memory. This must be
exactly the same slice as the one from
as_maybe_uninit_slice_mut
, or the trait
implementation as a whole, gets incorrect.Source§unsafe fn as_maybe_uninit_slice_mut(&mut self) -> &mut [MaybeUninit<Self::Item>]
unsafe fn as_maybe_uninit_slice_mut(&mut self) -> &mut [MaybeUninit<Self::Item>]
Retrieve a mutable slice pointing to possibly uninitialized memory. This must always
point to the same slice as with previous invocations. Read more
Source§impl<T: Initialize> InitializeVectored for SingleVector<T>
impl<T: Initialize> InitializeVectored for SingleVector<T>
Source§type UninitVector = T
type UninitVector = T
The possibly uninitialized vector type, which must implement
Initialize
. Note that this
does not necessarily need to deref into MaybeUninit<Item>
, but can be anything that is
convertible to it.Source§fn as_maybe_uninit_vectors(&self) -> &[Self::UninitVector]
fn as_maybe_uninit_vectors(&self) -> &[Self::UninitVector]
Get the uninitialized version of all vectors. This slice must always be exactly equal to
the slice returned by
as_maybe_uninit_vectors_mut
, except
being borrowed differently, or the trait is unsoundly implemented.Source§unsafe fn as_maybe_uninit_vectors_mut(&mut self) -> &mut [Self::UninitVector]
unsafe fn as_maybe_uninit_vectors_mut(&mut self) -> &mut [Self::UninitVector]
Get the uninitialized version of all vectors, mutably. This slice must always be exactly
equal to the slice returned by
as_maybe_uninit_vectors
,
or the trait is unsoundly implemented. Read moreSource§impl<T: Ord> Ord for SingleVector<T>
impl<T: Ord> Ord for SingleVector<T>
Source§fn cmp(&self, other: &SingleVector<T>) -> Ordering
fn cmp(&self, other: &SingleVector<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq> PartialEq for SingleVector<T>
impl<T: PartialEq> PartialEq for SingleVector<T>
Source§impl<T: PartialOrd> PartialOrd for SingleVector<T>
impl<T: PartialOrd> PartialOrd for SingleVector<T>
impl<T: Copy> Copy for SingleVector<T>
impl<T: Eq> Eq for SingleVector<T>
impl<T> StructuralPartialEq for SingleVector<T>
Auto Trait Implementations§
impl<T> Freeze for SingleVector<T>where
T: Freeze,
impl<T> RefUnwindSafe for SingleVector<T>where
T: RefUnwindSafe,
impl<T> Send for SingleVector<T>where
T: Send,
impl<T> Sync for SingleVector<T>where
T: Sync,
impl<T> Unpin for SingleVector<T>where
T: Unpin,
impl<T> UnwindSafe for SingleVector<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InitializeExt for Twhere
T: Initialize,
impl<T> InitializeExt for Twhere
T: Initialize,
Source§unsafe fn assume_init(self) -> AssertInit<Self>
unsafe fn assume_init(self) -> AssertInit<Self>
Assume that the type is already initialized. This is equivalent of calling
AssertInit::new_unchecked
. Read more