#[repr(usize)]pub enum Error {
Default(usize),
Info(usize),
Os(Error),
Arch(Error),
}Variants§
Implementations§
Trait Implementations§
Source§impl Bytes<Origin, Origin> for Error
impl Bytes<Origin, Origin> for Error
const BYTES_SIZE: usize
const BYTES_ALIGN: usize
fn primitive_load_size(&self) -> usize
fn to_bytes(&self, endianness: bool) -> [u8; 40]
fn from_bytes(bytes: [u8; 40], endianness: bool) -> Self
fn from_bytes_pointer(bytes_pointer: *const u8, endianness: bool) -> Self
fn to_le_bytes( &self, ) -> [u8; ample::::traits::bytes::Bytes::to_le_bytes::{constant#1}]
fn to_be_bytes( &self, ) -> [u8; ample::::traits::bytes::Bytes::to_be_bytes::{constant#1}]
fn from_le_bytes(
bytes: [u8; ample::::traits::bytes::Bytes::from_le_bytes::{constant#1}],
) -> Selfwhere
Self: Sized,
fn from_be_bytes(
bytes: [u8; ample::::traits::bytes::Bytes::from_be_bytes::{constant#1}],
) -> Selfwhere
Self: Sized,
impl BytesDefault<Origin> for Error
impl Copy for Error
Auto Trait Implementations§
impl Forget for Error
impl Freeze for Error
impl Move for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> Allocating<T> for T
impl<T> Allocating<T> for T
Source§fn deallocate(ptr: *mut T, numerosity: usize) -> bool
fn deallocate(ptr: *mut T, numerosity: usize) -> bool
Deallocate an array previously allocated with allocate_array
Source§fn allocate_slice(numerosity: usize) -> &'static mut [T]
fn allocate_slice(numerosity: usize) -> &'static mut [T]
Allocate and initialize a slice
fn allocate(numerosity: usize) -> *mut T
fn deallocate_slice(slice: &mut [T]) -> bool
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