UnsizedSlice

Struct UnsizedSlice 

Source
#[repr(C)]
pub struct UnsizedSlice<H, T> { pub header: H, pub slice: [T], }
Expand description

Represents a Sized header and an unsized slice.

Fields§

§header: H

The header.

§slice: [T]

The unsized slice.

Trait Implementations§

Source§

impl<H: Debug, T: Debug> Debug for UnsizedSlice<H, T>

Source§

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

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

impl<H: Hash, T: Hash> Hash for UnsizedSlice<H, T>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
Source§

impl<H, T> MaybeUninitProject for UnsizedSlice<H, T>

Source§

type Target = __MaybeUninitUnsizedSlice<H, T>

The maybe-uninit project type. MaybeUninit can only deal with Sized types.
Source§

impl<H: Ord, T: Ord> Ord for UnsizedSlice<H, T>

Source§

fn cmp(&self, other: &UnsizedSlice<H, T>) -> Ordering

This method returns an Ordering between self and other. Read more
Source§

impl<H: PartialEq, T: PartialEq> PartialEq for UnsizedSlice<H, T>

Source§

fn eq(&self, other: &UnsizedSlice<H, T>) -> 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<H: PartialOrd, T: PartialOrd> PartialOrd for UnsizedSlice<H, T>

Source§

fn partial_cmp(&self, other: &UnsizedSlice<H, T>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<H, T> UnsizedClone for UnsizedSlice<H, T>

Source§

fn clone_to(&self, dest: &mut Self::Target)

Clone the current type to maybe-uninit target.
Source§

fn clone(self: &Box<Self>) -> Box<Self>

Returns a boxed copy of the boxed value. Read more
Source§

impl<H: Eq, T: Eq> Eq for UnsizedSlice<H, T>

Source§

impl<H, T> StructuralPartialEq for UnsizedSlice<H, T>

Auto Trait Implementations§

§

impl<H, T> Freeze for UnsizedSlice<H, T>
where H: Freeze, T: Freeze,

§

impl<H, T> RefUnwindSafe for UnsizedSlice<H, T>

§

impl<H, T> Send for UnsizedSlice<H, T>
where H: Send, T: Send,

§

impl<H, T> !Sized for UnsizedSlice<H, T>

§

impl<H, T> Sync for UnsizedSlice<H, T>
where H: Sync, T: Sync,

§

impl<H, T> Unpin for UnsizedSlice<H, T>
where H: Unpin, T: Unpin,

§

impl<H, T> UnwindSafe for UnsizedSlice<H, T>
where H: UnwindSafe, T: UnwindSafe,

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