Enum icu_locid::shortvec::ShortBoxSliceInner
source · pub(crate) enum ShortBoxSliceInner<T> {
ZeroOne(Option<T>),
Multi(Box<[T]>),
}
Expand description
A boxed slice that supports no-allocation, constant values if length 0 or 1.
Using ZeroOne(Option
Variants§
Trait Implementations§
source§impl<T: Clone> Clone for ShortBoxSliceInner<T>
impl<T: Clone> Clone for ShortBoxSliceInner<T>
source§fn clone(&self) -> ShortBoxSliceInner<T>
fn clone(&self) -> ShortBoxSliceInner<T>
Returns a copy 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 ShortBoxSliceInner<T>
impl<T: Debug> Debug for ShortBoxSliceInner<T>
source§impl<T> Default for ShortBoxSliceInner<T>
impl<T> Default for ShortBoxSliceInner<T>
source§impl<T: Hash> Hash for ShortBoxSliceInner<T>
impl<T: Hash> Hash for ShortBoxSliceInner<T>
source§impl<T: Ord> Ord for ShortBoxSliceInner<T>
impl<T: Ord> Ord for ShortBoxSliceInner<T>
source§fn cmp(&self, other: &ShortBoxSliceInner<T>) -> Ordering
fn cmp(&self, other: &ShortBoxSliceInner<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 ShortBoxSliceInner<T>
impl<T: PartialEq> PartialEq for ShortBoxSliceInner<T>
source§impl<T: PartialOrd> PartialOrd for ShortBoxSliceInner<T>
impl<T: PartialOrd> PartialOrd for ShortBoxSliceInner<T>
impl<T: Eq> Eq for ShortBoxSliceInner<T>
impl<T> StructuralPartialEq for ShortBoxSliceInner<T>
Auto Trait Implementations§
impl<T> Freeze for ShortBoxSliceInner<T>where
T: Freeze,
impl<T> RefUnwindSafe for ShortBoxSliceInner<T>where
T: RefUnwindSafe,
impl<T> Send for ShortBoxSliceInner<T>where
T: Send,
impl<T> Sync for ShortBoxSliceInner<T>where
T: Sync,
impl<T> Unpin for ShortBoxSliceInner<T>where
T: Unpin,
impl<T> UnwindSafe for ShortBoxSliceInner<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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)