[][src]Struct heapless::pool::Box

pub struct Box<T, STATE = Init> { /* fields omitted */ }

A memory block

Methods

impl<T> Box<T, Uninit>[src]

pub fn init(self, val: T) -> Box<T, Init>[src]

Initializes this memory block

Trait Implementations

impl<T> Deref for Box<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T> DerefMut for Box<T>[src]

impl<T> PartialEq<Box<T, Init>> for Box<T> where
    T: PartialEq
[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl<T> Eq for Box<T> where
    T: Eq
[src]

impl<T> Ord for Box<T> where
    T: Ord
[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl<T> PartialOrd<Box<T, Init>> for Box<T> where
    T: PartialOrd
[src]

#[must_use] fn lt(&self, other: &Rhs) -> bool1.0.0[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use] fn le(&self, other: &Rhs) -> bool1.0.0[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use] fn gt(&self, other: &Rhs) -> bool1.0.0[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use] fn ge(&self, other: &Rhs) -> bool1.0.0[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T> Hash for Box<T> where
    T: Hash
[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<T, S> Send for Box<T, S> where
    T: Send
[src]

impl<T, S> Sync for Box<T, S> where
    T: Sync
[src]

impl<T> Debug for Box<T> where
    T: Debug
[src]

impl<T> Display for Box<T> where
    T: Display
[src]

impl<A> AsSlice for Box<A> where
    A: AsSlice
[src]

type Element = A::Element

The element type of the slice view

impl<A> AsMutSlice for Box<A> where
    A: AsMutSlice
[src]

Auto Trait Implementations

impl<T, STATE> Unpin for Box<T, STATE> where
    STATE: Unpin,
    T: Unpin

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self