Struct sample_programs::pstructs::SmallStruct
source · #[repr(C)]pub struct SmallStruct {
pub key: u64,
pub data: PVec<u64>,
}Fields§
§key: u64§data: PVec<u64>Implementations§
Trait Implementations§
source§impl Persistable for SmallStruct
impl Persistable for SmallStruct
fn as_bytes(&self) -> &[u8] ⓘwhere Self: Sized,
fn from_bytes(src: *mut [u8]) -> *mut Selfwhere Self: Sized,
fn from_bytes_ref(src: *const [u8]) -> &'static Selfwhere Self: Sized,
§fn adjust_from(&mut self, _other: &Self)
fn adjust_from(&mut self, _other: &Self)
Used for object moves.
source§impl PersistentlyAllocatable for SmallStruct
impl PersistentlyAllocatable for SmallStruct
fn set_allocator(&mut self, allocator: Arc<RwLock<BumpAllocator>>)
fn get_allocator(&self) -> Option<Arc<RwLock<BumpAllocator>>>
Auto Trait Implementations§
impl !RefUnwindSafe for SmallStruct
impl Send for SmallStruct
impl Sync for SmallStruct
impl Unpin for SmallStruct
impl !UnwindSafe for SmallStruct
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