Struct oxygengine::core::scripting::intuicio::core::object::TypedDynamicObject
pub struct TypedDynamicObject { /* private fields */ }
Implementations§
§impl TypedDynamicObject
impl TypedDynamicObject
pub fn get<T>(&self) -> Option<&Object>where T: 'static,
pub fn get_mut<T>(&mut self) -> Option<&mut Object>where T: 'static,
pub fn set<T>(&mut self, value: Object)where T: 'static,
pub fn delete<T>(&mut self) -> Option<Object>where T: 'static,
pub fn properties(&self) -> impl Iterator<Item = (&TypeHash, &Object)>
pub fn properties_mut( &mut self ) -> impl Iterator<Item = (&TypeHash, &mut Object)>
pub fn property_types(&self) -> impl Iterator<Item = &TypeHash>
Trait Implementations§
§impl Default for TypedDynamicObject
impl Default for TypedDynamicObject
§fn default() -> TypedDynamicObject
fn default() -> TypedDynamicObject
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for TypedDynamicObject
impl Send for TypedDynamicObject
impl Sync for TypedDynamicObject
impl Unpin for TypedDynamicObject
impl UnwindSafe for TypedDynamicObject
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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more