Struct native_model::wrapper::Wrapper
source · pub struct Wrapper<T: ByteSlice> { /* private fields */ }Implementations§
source§impl<T: ByteSlice> Wrapper<T>
impl<T: ByteSlice> Wrapper<T>
pub fn deserialize(packed: T) -> Option<Self>
pub fn value(&self) -> &T
pub fn get_type_id(&self) -> u32
pub fn get_id(&self) -> u32
pub fn get_version(&self) -> u32
source§impl<T: ByteSliceMut> Wrapper<T>
impl<T: ByteSliceMut> Wrapper<T>
pub fn set_type_id(&mut self, type_id: u32)
pub fn set_version(&mut self, version: u32)
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for Wrapper<T>where
T: RefUnwindSafe,
impl<T> Send for Wrapper<T>where
T: Send,
impl<T> Sync for Wrapper<T>where
T: Sync,
impl<T> Unpin for Wrapper<T>where
T: Unpin,
impl<T> UnwindSafe for Wrapper<T>where
T: UnwindSafe,
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