#[repr(C)]pub struct AllocationError();Expand description
A generic allocation error.
Implementations§
Source§impl AllocationError
impl AllocationError
Sourcepub const fn has_optimal_layout() -> bool
pub const fn has_optimal_layout() -> bool
Returns true if the layout for AllocationError is smaller or equal to that Rust would have generated for it.
Trait Implementations§
Source§impl Clone for AllocationError
impl Clone for AllocationError
Source§fn clone(&self) -> AllocationError
fn clone(&self) -> AllocationError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AllocationError
impl Debug for AllocationError
Source§impl Default for AllocationError
impl Default for AllocationError
Source§fn default() -> AllocationError
fn default() -> AllocationError
Returns the “default value” for a type. Read more
Source§impl Display for AllocationError
impl Display for AllocationError
Source§impl Error for AllocationError
impl Error for AllocationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl Hash for AllocationError
impl Hash for AllocationError
Source§impl IStable for AllocationError
impl IStable for AllocationError
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 = 5_938_264_838_966_522_670u64
const ID: u64 = 5_938_264_838_966_522_670u64
A stable (and ideally unique) identifier for the type. Often generated using
crate::report::gen_id, but can be manually set.Source§type ForbiddenValues = <() as IStable>::ForbiddenValues
type ForbiddenValues = <() as IStable>::ForbiddenValues
The values that the annotated type cannot occupy.
Source§type UnusedBits = <() as IStable>::UnusedBits
type UnusedBits = <() as IStable>::UnusedBits
The padding bits in the annotated types
Source§type HasExactlyOneNiche = <() as IStable>::HasExactlyOneNiche
type HasExactlyOneNiche = <() as IStable>::HasExactlyOneNiche
Allows the detection of whether or not
core::option::Options are stable: Read moreSource§type ContainsIndirections = <() as IStable>::ContainsIndirections
type ContainsIndirections = <() as IStable>::ContainsIndirections
Whether or not the type contains indirections (pointers, indices in independent data-structures…)
Source§impl PartialEq for AllocationError
impl PartialEq for AllocationError
impl Eq for AllocationError
impl StructuralPartialEq for AllocationError
Auto Trait Implementations§
impl Freeze for AllocationError
impl RefUnwindSafe for AllocationError
impl Send for AllocationError
impl Sync for AllocationError
impl Unpin for AllocationError
impl UnwindSafe for AllocationError
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