Struct intuicio_essentials::prelude::Object
source · pub struct Object { /* private fields */ }
Implementations§
source§impl Object
impl Object
pub fn new(handle: Arc<Type>) -> Object
pub fn try_new(handle: Arc<Type>) -> Option<Object>
pub fn with_value<T>(handle: Arc<Type>, value: T) -> Option<Object>where
T: 'static,
sourcepub unsafe fn initialize(&mut self)
pub unsafe fn initialize(&mut self)
§Safety
pub fn consume<T>(self) -> Result<T, Object>where
T: 'static,
pub fn type_handle(&self) -> &Arc<Type>
sourcepub unsafe fn memory_mut(&mut self) -> &mut [u8] ⓘ
pub unsafe fn memory_mut(&mut self) -> &mut [u8] ⓘ
§Safety
sourcepub unsafe fn field_memory<'a>(
&'a self,
query: StructFieldQuery<'a>
) -> Option<&'a [u8]>
pub unsafe fn field_memory<'a>( &'a self, query: StructFieldQuery<'a> ) -> Option<&'a [u8]>
§Safety
sourcepub unsafe fn field_memory_mut<'a>(
&'a mut self,
query: StructFieldQuery<'a>
) -> Option<&'a mut [u8]>
pub unsafe fn field_memory_mut<'a>( &'a mut self, query: StructFieldQuery<'a> ) -> Option<&'a mut [u8]>
§Safety
pub fn read<T>(&self) -> Option<&T>where
T: 'static,
pub fn write<T>(&mut self) -> Option<&mut T>where
T: 'static,
pub fn read_field<'a, T>(&'a self, field: &str) -> Option<&'a T>where
T: 'static,
pub fn write_field<'a, T>(&'a mut self, field: &str) -> Option<&'a mut T>where
T: 'static,
sourcepub unsafe fn as_mut_ptr(&mut self) -> *mut u8
pub unsafe fn as_mut_ptr(&mut self) -> *mut u8
§Safety
sourcepub unsafe fn prevent_drop(&mut self)
pub unsafe fn prevent_drop(&mut self)
§Safety
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Object
impl RefUnwindSafe for Object
impl !Send for Object
impl !Sync for Object
impl Unpin for Object
impl UnwindSafe for Object
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