#[non_exhaustive]pub enum Allocation<'a> {
Static(&'a mut [u8]),
}
Expand description
Represents memory where binn data will be stored
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Static(&'a mut [u8])
Represents static allocation that can’t be changed in size and will be valid for a lifetime ’a
Trait Implementations§
Source§impl<'a> Debug for Allocation<'a>
impl<'a> Debug for Allocation<'a>
Auto Trait Implementations§
impl<'a> Freeze for Allocation<'a>
impl<'a> RefUnwindSafe for Allocation<'a>
impl<'a> Send for Allocation<'a>
impl<'a> Sync for Allocation<'a>
impl<'a> Unpin for Allocation<'a>
impl<'a> !UnwindSafe for Allocation<'a>
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