Skip to main content

Box

Type Alias Box 

Source
pub type Box<T> = Box<T>;
Available on crate feature alloc only.
Expand description

A pointer type that uniquely owns a heap allocation of type T.

§Feature Variants

  • With alloc feature: Standard heap-allocated Box<T> from the alloc crate
  • Without alloc feature: Transparent newtype holding T inline

Aliased Type§

pub struct Box<T>(/* private fields */);

Trait Implementations§

Source§

impl<'r, T> ReadXDR<'r> for Box<T>
where T: ReadXDR<'r>,

Source§

fn read_xdr<R: Reader<'r>>(r: &mut R) -> ReadResult<Self>

Reads an XDR value from the reader. Read more
Source§

fn read_xdr_in_place<'s, R: Reader<'r>>( r: &mut R, slot: Slot<'s, Self>, ) -> ReadResult<Init<'s, Self>>

Reads an XDR value directly into slot, without first building it on the stack. Read more