pub trait ObjectImpl<T: ObjectBase>: AnyImpl + 'static {
// Provided methods
fn set_property(&self, _obj: &Object, _id: u32, _value: &Value) { ... }
fn get_property(&self, _obj: &Object, _id: u32) -> Result<Value, ()> { ... }
fn constructed(&self, obj: &T) { ... }
}Provided Methods§
fn set_property(&self, _obj: &Object, _id: u32, _value: &Value)
fn get_property(&self, _obj: &Object, _id: u32) -> Result<Value, ()>
fn constructed(&self, obj: &T)
Implementations§
Source§impl<T: ObjectBase> dyn ObjectImpl<T>
impl<T: ObjectBase> dyn ObjectImpl<T>
pub fn downcast_ref<U: ObjectImpl<T>>(&self) -> Option<&U>
pub unsafe fn downcast_ref_unchecked<U: ObjectImpl<T>>(&self) -> &U
pub fn is<U: ObjectImpl<T>>(&self) -> bool
Trait Implementations§
Source§impl<T: ObjectBase> ObjectImpl<T> for Box<dyn ObjectImpl<T>>
impl<T: ObjectBase> ObjectImpl<T> for Box<dyn ObjectImpl<T>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".