Searched refs:CastFrom (Results 1 – 18 of 18) sorted by relevance
1 use crate::{caster, CastFrom};35 impl<S: ?Sized + CastFrom> CastMut for S {
3 use crate::{caster, CastFrom};37 impl<S: ?Sized + CastFrom> CastBox for S {
1 use crate::{caster, CastFrom};37 impl<S: ?Sized + CastFrom> CastRc for S {
3 use crate::{caster, CastFrom, Caster};64 impl<S: ?Sized + CastFrom> CastRef for S {
6 trait Source: CastFrom {}
7 trait Source: CastFrom {}
11 trait Source: CastFrom {}
8 trait Source: CastFrom {}
16 With this crate, any trait object for a sub-trait of [`CastFrom`] can be cast directly to a trait o…39 trait Source: CastFrom {}125 * Mark source traits with [`CastFromSync`] instead of [`CastFrom`]134 First of all, [`CastFrom`] trait makes it possible to retrieve an object of [`std::any::Any`]135 from an object for a sub-trait of [`CastFrom`]. 143 backing a trait object for a sub-trait of [`CastFrom`] and the target trait (the actual implementat…
10 trait Source: CastFrom {}
267 pub trait CastFrom: Any + 'static { interface294 pub trait CastFromSync: CastFrom + Sync + Send + 'static {298 impl<T: Sized + Any + 'static> CastFrom for T {316 impl CastFrom for dyn Any + 'static {340 impl CastFrom for dyn Any + Sync + Send + 'static {
32 use intertrait::{CastFrom, CastFromSync};39 pub trait PerfEventOps: Send + Sync + Debug + CastFromSync + CastFrom + IndexNode {
4 use intertrait::CastFrom;
269 pub trait PerfEventOps: Send + Sync + Debug + CastFromSync + CastFrom {