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
allocfeature: Standard heap-allocatedBox<T>from the alloc crate - Without
allocfeature: Transparent newtype holdingTinline
Aliased Type§
pub struct Box<T>(/* private fields */);Trait Implementations§
Source§impl<'r, T> ReadXDR<'r> for Box<T>where
T: ReadXDR<'r>,
impl<'r, T> ReadXDR<'r> for Box<T>where
T: ReadXDR<'r>,
Source§fn read_xdr<R: Reader<'r>>(r: &mut R) -> ReadResult<Self>
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>>
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