[][src]Struct alloc_many_collections::boxed::Box

pub struct Box<A, T> where
    A: Alloc,
    T: ?Sized
{ /* fields omitted */ }

A pointer type for heap allocations

Methods

impl<A, T> Box<A, T> where
    A: Alloc
[src]

pub fn new(value: T) -> Self[src]

Allocates memory on the allocator A and then places x into it.

Trait Implementations

impl<A, T> Deref for Box<A, T> where
    T: ?Sized,
    A: Alloc
[src]

type Target = T

The resulting type after dereferencing.

impl<A, T: ?Sized> Debug for Box<A, T> where
    T: Debug,
    A: Alloc
[src]

impl<A, T: ?Sized> Display for Box<A, T> where
    T: Display,
    A: Alloc
[src]

impl<A, B, T: ?Sized> PartialEq<Box<B, T>> for Box<A, T> where
    T: PartialEq,
    A: Alloc,
    B: Alloc
[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<A, T: ?Sized> Eq for Box<A, T> where
    T: Eq,
    A: Alloc
[src]

impl<A, B, T: ?Sized> PartialOrd<Box<B, T>> for Box<A, T> where
    T: PartialOrd,
    A: Alloc,
    B: Alloc
[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.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) -> bool
1.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) -> bool
1.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) -> bool
1.0.0[src]

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

impl<A, T> DerefMut for Box<A, T> where
    T: ?Sized,
    A: Alloc
[src]

impl<A, T> Drop for Box<A, T> where
    A: Alloc,
    T: ?Sized
[src]

Auto Trait Implementations

impl<A, T: ?Sized> Send for Box<A, T> where
    A: Send,
    T: Send

impl<A, T: ?Sized> Sync for Box<A, T> where
    A: Sync,
    T: Sync

Blanket Implementations

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

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, 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]