#[repr(C)]pub struct RelBox<T: BasisPointee<B> + ?Sized, A: RawRegionalAllocator, B: Basis = DefaultBasis> { /* private fields */ }
Expand description
A relative counterpart to Box
.
Implementations
sourceimpl<T, A, B> RelBox<T, A, B>where
T: BasisPointee<B> + ?Sized,
A: RawRegionalAllocator,
B: Basis,
impl<T, A, B> RelBox<T, A, B>where
T: BasisPointee<B> + ?Sized,
A: RawRegionalAllocator,
B: Basis,
sourceimpl<T, A, B> RelBox<MaybeUninit<T>, A, B>where
T: DropRaw,
A: RawRegionalAllocator + DropRaw,
B: Basis,
impl<T, A, B> RelBox<MaybeUninit<T>, A, B>where
T: DropRaw,
A: RawRegionalAllocator + DropRaw,
B: Basis,
Trait Implementations
sourceimpl<T, A, B> DebugRaw for RelBox<T, A, B>where
T: BasisPointee<B> + DebugRaw + ?Sized,
A: RawRegionalAllocator,
B: Basis,
impl<T, A, B> DebugRaw for RelBox<T, A, B>where
T: BasisPointee<B> + DebugRaw + ?Sized,
A: RawRegionalAllocator,
B: Basis,
sourceimpl<T, A, B> DerefMutRaw for RelBox<T, A, B>where
T: BasisPointee<B> + ?Sized,
A: RawRegionalAllocator,
B: Basis,
impl<T, A, B> DerefMutRaw for RelBox<T, A, B>where
T: BasisPointee<B> + ?Sized,
A: RawRegionalAllocator,
B: Basis,
sourcefn deref_mut_raw(this: Mut<'_, Self>) -> Mut<'_, T>
fn deref_mut_raw(this: Mut<'_, Self>) -> Mut<'_, T>
Mutably dereferences the value.
sourceimpl<T, A, B> DerefRaw for RelBox<T, A, B>where
T: BasisPointee<B> + ?Sized,
A: RawRegionalAllocator,
B: Basis,
impl<T, A, B> DerefRaw for RelBox<T, A, B>where
T: BasisPointee<B> + ?Sized,
A: RawRegionalAllocator,
B: Basis,
sourceimpl<T, A, B> DisplayRaw for RelBox<T, A, B>where
T: BasisPointee<B> + DisplayRaw + ?Sized,
A: RawRegionalAllocator,
B: Basis,
impl<T, A, B> DisplayRaw for RelBox<T, A, B>where
T: BasisPointee<B> + DisplayRaw + ?Sized,
A: RawRegionalAllocator,
B: Basis,
sourceimpl<T, A, B> DropRaw for RelBox<T, A, B>where
T: BasisPointee<B> + DropRaw + ?Sized,
A: RawRegionalAllocator + DropRaw,
B: Basis,
impl<T, A, B> DropRaw for RelBox<T, A, B>where
T: BasisPointee<B> + DropRaw + ?Sized,
A: RawRegionalAllocator + DropRaw,
B: Basis,
sourceimpl<T, A, B, R> Emplace<RelBox<T, A, B>, <R as RegionalAllocator>::Region> for OwnedVal<T, R>where
T: BasisPointee<B> + DropRaw + ?Sized,
A: DropRaw + RawRegionalAllocator<Region = R::Region>,
B: Basis,
R: RelAllocator<A>,
impl<T, A, B, R> Emplace<RelBox<T, A, B>, <R as RegionalAllocator>::Region> for OwnedVal<T, R>where
T: BasisPointee<B> + DropRaw + ?Sized,
A: DropRaw + RawRegionalAllocator<Region = R::Region>,
B: Basis,
R: RelAllocator<A>,
sourceimpl<T, A, B, Idx> IndexMutRaw<Idx> for RelBox<T, A, B>where
T: BasisPointee<B> + IndexMutRaw<Idx> + ?Sized,
A: RawRegionalAllocator,
B: Basis,
impl<T, A, B, Idx> IndexMutRaw<Idx> for RelBox<T, A, B>where
T: BasisPointee<B> + IndexMutRaw<Idx> + ?Sized,
A: RawRegionalAllocator,
B: Basis,
sourceimpl<T, A, B, Idx> IndexRaw<Idx> for RelBox<T, A, B>where
T: BasisPointee<B> + IndexRaw<Idx> + ?Sized,
A: RawRegionalAllocator,
B: Basis,
impl<T, A, B, Idx> IndexRaw<Idx> for RelBox<T, A, B>where
T: BasisPointee<B> + IndexRaw<Idx> + ?Sized,
A: RawRegionalAllocator,
B: Basis,
sourceimpl<T: BasisPointee<B> + ?Sized, A: RawRegionalAllocator, B: Basis, __R: Region> Move<__R> for RelBox<T, A, B>where
Self: DropRaw,
RelPtr<T, A::Region, B>: Move<__R>,
A: Move<__R>,
impl<T: BasisPointee<B> + ?Sized, A: RawRegionalAllocator, B: Basis, __R: Region> Move<__R> for RelBox<T, A, B>where
Self: DropRaw,
RelPtr<T, A::Region, B>: Move<__R>,
A: Move<__R>,
impl<T: BasisPointee<B> + ?Sized, A: RawRegionalAllocator, B: Basis> Portable for RelBox<T, A, B>where
RelPtr<T, A::Region, B>: Portable,
A: Portable,
Auto Trait Implementations
impl<T: ?Sized, A, B> RefUnwindSafe for RelBox<T, A, B>where
A: RefUnwindSafe,
T: RefUnwindSafe,
<T as BasisPointee<B>>::BasisMetadata: RefUnwindSafe,
<B as Basis>::Isize: RefUnwindSafe,
<A as RawRegionalAllocator>::Region: RefUnwindSafe,
impl<T, A, B = DefaultBasis> !Send for RelBox<T, A, B>
impl<T, A, B = DefaultBasis> !Sync for RelBox<T, A, B>
impl<T, A, B = DefaultBasis> !Unpin for RelBox<T, A, B>
impl<T: ?Sized, A, B> UnwindSafe for RelBox<T, A, B>where
A: UnwindSafe,
T: RefUnwindSafe,
<T as BasisPointee<B>>::BasisMetadata: UnwindSafe,
<B as Basis>::Isize: UnwindSafe,
<A as RawRegionalAllocator>::Region: UnwindSafe,
Blanket Implementations
sourceimpl<T, B> BasisPointee<B> for Twhere
B: Basis,
impl<T, B> BasisPointee<B> for Twhere
B: Basis,
type BasisMetadata = ()
type BasisMetadata = ()
The metadata associated with the pointee in the chosen basis.
type FromNativeError = Infallible
type FromNativeError = Infallible
An error occurred while converting metadata from the native
representation. Read more
type ToNativeError = Infallible
type ToNativeError = Infallible
An error occurred while converting metadata to the native
representation. Read more
sourcefn from_native_metadata(
<T as Pointee>::Metadata
) -> Result<<T as BasisPointee<B>>::BasisMetadata, <T as BasisPointee<B>>::FromNativeError>
fn from_native_metadata(
<T as Pointee>::Metadata
) -> Result<<T as BasisPointee<B>>::BasisMetadata, <T as BasisPointee<B>>::FromNativeError>
Returns the pointer metadata in
B
corresponding to the given native
pointer metadata, or Err
if the conversion failed. Read moresourcefn to_native_metadata(
<T as BasisPointee<B>>::BasisMetadata
) -> Result<<T as Pointee>::Metadata, <T as BasisPointee<B>>::ToNativeError>
fn to_native_metadata(
<T as BasisPointee<B>>::BasisMetadata
) -> Result<<T as Pointee>::Metadata, <T as BasisPointee<B>>::ToNativeError>
Returns the native pointer metadata corresponding to the given pointer
metadata in
B
, or Err
if the conversion failed. Read moresourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more