[−][src]Struct thin::Slice
Trait Implementations
impl<T> Debug for ThinSlice<T> where
[T]: Debug,
[src]
[T]: Debug,
impl<T> Deref for ThinSlice<T>
[src]
impl<T> DerefMut for ThinSlice<T>
[src]
impl<T> Display for ThinSlice<T> where
[T]: Display,
[src]
[T]: Display,
impl<T> Eq for ThinSlice<T> where
[T]: Eq,
[src]
[T]: Eq,
impl<T> Ord for ThinSlice<T> where
[T]: Ord,
[src]
[T]: Ord,
fn cmp(&self, other: &Self) -> 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<T, O: ?Sized> PartialEq<O> for ThinSlice<T> where
[T]: PartialEq<O>,
[src]
[T]: PartialEq<O>,
impl<T> PartialEq<ThinSlice<T>> for ThinSlice<T> where
[T]: PartialEq,
[src]
[T]: PartialEq,
impl<T, O: ?Sized> PartialOrd<O> for ThinSlice<T> where
[T]: PartialOrd<O>,
[src]
[T]: PartialOrd<O>,
fn partial_cmp(&self, other: &O) -> 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<T> PartialOrd<ThinSlice<T>> for ThinSlice<T> where
[T]: PartialOrd,
[src]
[T]: PartialOrd,
fn partial_cmp(&self, other: &Self) -> 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<T> Thinnable for ThinSlice<T>
[src]
type Head = usize
The sized part of the allocation.
type SliceItem = T
The item type of the slice part of the allocation.
fn make_fat(ptr: *mut [Erased]) -> *mut Self
[src]
fn get_length(head: &usize) -> usize
[src]
fn make_thin(fat: NonNull<Self>) -> NonNull<Erased>
[src]
unsafe fn make_fat_const(thin: NonNull<Erased>) -> NonNull<Self>
[src]
unsafe fn make_fat_mut(thin: NonNull<Erased>) -> NonNull<Self>
[src]
Auto Trait Implementations
impl<T> Send for ThinSlice<T> where
T: Send,
T: Send,
impl<T> Sync for ThinSlice<T> where
T: Sync,
T: Sync,
impl<T> Unpin for ThinSlice<T> where
T: Unpin,
T: Unpin,