#[repr(C)]pub struct RustAlloc { /* private fields */ }Expand description
Rust’s GlobalAlloc, annotating its yielded pointers in such a way that the allocated pointers can be safely freed from other binaries.
Implementations§
Trait Implementations§
Source§impl IAlloc for RustAlloc
impl IAlloc for RustAlloc
Source§impl IStable for RustAlloc
impl IStable for RustAlloc
Source§const REPORT: &'static TypeReport
const REPORT: &'static TypeReport
A compile-time generated report of the fields of the type, allowing for compatibility inspection.
Source§const ID: u64 = 8_860_189_847_171_676_008u64
const ID: u64 = 8_860_189_847_171_676_008u64
A stable (and ideally unique) identifier for the type. Often generated using
crate::report::gen_id, but can be manually set.Source§type ForbiddenValues = <Struct<[u8; 0]> as IStable>::ForbiddenValues
type ForbiddenValues = <Struct<[u8; 0]> as IStable>::ForbiddenValues
The values that the annotated type cannot occupy.
Source§type UnusedBits = <Struct<[u8; 0]> as IStable>::UnusedBits
type UnusedBits = <Struct<[u8; 0]> as IStable>::UnusedBits
The padding bits in the annotated types
Source§type Align = <Struct<[u8; 0]> as IStable>::Align
type Align = <Struct<[u8; 0]> as IStable>::Align
The alignment of the annotated type in bytes.
Source§type HasExactlyOneNiche = <Struct<[u8; 0]> as IStable>::HasExactlyOneNiche
type HasExactlyOneNiche = <Struct<[u8; 0]> as IStable>::HasExactlyOneNiche
Allows the detection of whether or not
core::option::Options are stable: Read moreSource§type ContainsIndirections = <Struct<[u8; 0]> as IStable>::ContainsIndirections
type ContainsIndirections = <Struct<[u8; 0]> as IStable>::ContainsIndirections
Whether or not the type contains indirections (pointers, indices in independent data-structures…)
impl Copy for RustAlloc
Auto Trait Implementations§
impl Freeze for RustAlloc
impl RefUnwindSafe for RustAlloc
impl Send for RustAlloc
impl Sync for RustAlloc
impl Unpin for RustAlloc
impl UnwindSafe for RustAlloc
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IPod for T
impl<T> IPod for T
Source§fn identifier() -> u64
fn identifier() -> u64
Produces an identifier for the type, allowing to check type at runtime (barring collisions).
Source§impl<T> IStableAlloc for Twhere
T: IAlloc,
impl<T> IStableAlloc for Twhere
T: IAlloc,
Source§extern "C" fn alloc(&mut self, layout: Layout) -> *mut ()
extern "C" fn alloc(&mut self, layout: Layout) -> *mut ()
👎Deprecated: Stabby doesn’t actually use this trait due to conflicts.
Allocates at least as much memory as requested by layout, ensuring the requested alignment is respected. Read more