Struct intuicio_core::object::TypedDynamicObject
source · pub struct TypedDynamicObject { /* private fields */ }
Implementations§
source§impl TypedDynamicObject
impl TypedDynamicObject
pub fn get<T: 'static>(&self) -> Option<&Object>
pub fn get_mut<T: 'static>(&mut self) -> Option<&mut Object>
pub fn set<T: 'static>(&mut self, value: Object)
pub fn delete<T: 'static>(&mut self) -> Option<Object>
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§
source§impl Default for TypedDynamicObject
impl Default for TypedDynamicObject
source§fn default() -> TypedDynamicObject
fn default() -> TypedDynamicObject
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TypedDynamicObject
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