Trait three::object::DowncastObject
source · pub trait DowncastObject: Object + Sized {
fn downcast(object: ObjectType) -> Option<Self>;
}
Expand description
Marks an object type that can be downcast from a Base
.
See SyncGuard::downcast
for information on how this trait is used.
Required Methods
sourcefn downcast(object: ObjectType) -> Option<Self>
fn downcast(object: ObjectType) -> Option<Self>
Attempts to extract the concrete type of the object from an ObjectType
.
Prefer to use SyncGuard::downcast
over calling this directly.