Expand description
Casting objects to trait pointers.
Rust supports Any-to-Concrete downcasting via Any;
and the downcast_rs crate supports Trait-to-Concrete downcasting.
This module adds Trait-to-Trait downcasting for the Object trait.
Re-exportsΒ§
use std::any::Any;πuse std::any::TypeId;πuse std::collections::HashMap;πuse std::sync::Arc;πuse std::sync::LazyLock;πuse crate::Object;π
StructsΒ§
- Cast
Table - A collection of functions to downcast
&dyn Objectreferences for some particular concrete object typeOinto various&dyn Traitreferences. - Caster π
- A single entry in a
CastTable.
StaticsΒ§
- EMPTY_
CAST_ πTABLE - Static cast table that doesnβt support casting anything to anything.