Enum multiboot2_common::MemoryError 
source · pub enum MemoryError {
    Null,
    WrongAlignment,
    ShorterThanHeader,
    MissingPadding,
    InvalidReportedTotalSize,
}Expand description
Errors that may occur when working with memory.
Variants§
Null
The memory points to null.
WrongAlignment
The memory must be at least ALIGNMENT-aligned.
ShorterThanHeader
The memory must cover at least the length of the sized structure header type.
MissingPadding
The buffer misses the terminating padding to the next alignment boundary. The padding is relevant to satisfy Rustc/Miri, but also the spec mandates that the padding is added.
InvalidReportedTotalSize
The size-property has an illegal value that can’t be fulfilled with the given bytes.
Trait Implementations§
source§impl Clone for MemoryError
 
impl Clone for MemoryError
source§fn clone(&self) -> MemoryError
 
fn clone(&self) -> MemoryError
Returns a copy 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 MemoryError
 
impl Debug for MemoryError
source§impl Display for MemoryError
 
impl Display for MemoryError
source§impl Error for MemoryError
 
impl Error for MemoryError
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 MemoryError
 
impl Hash for MemoryError
source§impl Ord for MemoryError
 
impl Ord for MemoryError
source§fn cmp(&self, other: &MemoryError) -> Ordering
 
fn cmp(&self, other: &MemoryError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for MemoryError
 
impl PartialEq for MemoryError
source§impl PartialOrd for MemoryError
 
impl PartialOrd for MemoryError
impl Copy for MemoryError
impl Eq for MemoryError
impl StructuralPartialEq for MemoryError
Auto Trait Implementations§
impl Freeze for MemoryError
impl RefUnwindSafe for MemoryError
impl Send for MemoryError
impl Sync for MemoryError
impl Unpin for MemoryError
impl UnwindSafe for MemoryError
Blanket Implementations§
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)