Home
last modified time | relevance | path

Searched refs:CastFrom (Results 1 – 18 of 18) sorted by relevance

/DragonOS/kernel/crates/intertrait/src/cast/
H A Dcast_mut.rs1 use crate::{caster, CastFrom};
35 impl<S: ?Sized + CastFrom> CastMut for S {
H A Dcast_box.rs3 use crate::{caster, CastFrom};
37 impl<S: ?Sized + CastFrom> CastBox for S {
H A Dcast_rc.rs1 use crate::{caster, CastFrom};
37 impl<S: ?Sized + CastFrom> CastRc for S {
H A Dcast_ref.rs3 use crate::{caster, CastFrom, Caster};
64 impl<S: ?Sized + CastFrom> CastRef for S {
/DragonOS/kernel/crates/intertrait/tests/
H A Don-trait-impl.rs6 trait Source: CastFrom {}
H A Don-struct.rs7 trait Source: CastFrom {}
H A Don-enum.rs11 trait Source: CastFrom {}
H A Don-trait-impl-assoc-type1.rs8 trait Source: CastFrom {}
H A Don-trait-impl-assoc-type2.rs8 trait Source: CastFrom {}
H A Don-type-multi-traits.rs7 trait Source: CastFrom {}
H A Dcastable_to.rs6 trait Source: CastFrom {}
H A Don-trait-impl-assoc-type3.rs8 trait Source: CastFrom {}
/DragonOS/kernel/crates/intertrait/
H A DREADME.md16 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…
/DragonOS/kernel/crates/intertrait/tests/ui/
H A Don-generic-type.rs10 trait Source: CastFrom {}
/DragonOS/kernel/crates/intertrait/src/
H A Dlib.rs267 pub trait CastFrom: Any + 'static { trait
294 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 {
/DragonOS/kernel/src/perf/
H A Dmod.rs32 use intertrait::{CastFrom, CastFromSync};
39 pub trait PerfEventOps: Send + Sync + Debug + CastFromSync + CastFrom + IndexNode {
/DragonOS/kernel/src/arch/x86_64/driver/apic/
H A Dlapic_vector.rs4 use intertrait::CastFrom;
/DragonOS/docs/kernel/trace/
H A DeBPF.md269 pub trait PerfEventOps: Send + Sync + Debug + CastFromSync + CastFrom {