Home
last modified time | relevance | path

Searched refs:traits (Results 1 – 20 of 20) sorted by relevance

/DragonOS/kernel/crates/system_error/
H A DCargo.toml9 num-traits = { git = "https://git.mirrors.dragonos.org.cn/DragonOS-Community/num-traits.git", rev="…
/DragonOS/kernel/crates/intertrait/
H A DREADME.md17 for another trait implemented by the underlying type if the target traits are registered beforehand
62 Target traits must be explicitly designated beforehand. There are three ways of doing it:
82 For the type, the traits specified as arguments to the `#[cast_to(...)]` attribute are designated a…
101 For the type, the traits following `:` are designated as target traits.
125 * Mark source traits with [`CastFromSync`] instead of [`CastFrom`]
/DragonOS/docs/kernel/core_api/
H A Dcasting.md5 - 数值类型转换 (使用`num-traits`库)
15   您可以使用`num-traits`库提供的宏,实现枚举类型和整数类型之间的转换。
/DragonOS/kernel/crates/bitmap/src/
H A Dlib.rs14 pub mod traits; module
H A Dstatic_bitmap.rs3 use crate::{bitmap_core::BitMapCore, traits::BitMapOps};
H A Dalloc_bitmap.rs5 use crate::{bitmap_core::BitMapCore, traits::BitMapOps};
H A Dbitmap_core.rs3 use crate::traits::BitOps;
/DragonOS/kernel/src/smp/
H A Dsyscall.rs1 use bitmap::traits::BitMapOps;
/DragonOS/kernel/src/driver/scsi/
H A Dmod.rs1 use bitmap::traits::BitMapOps;
/DragonOS/kernel/
H A DCargo.toml54 num-traits = { git = "https://git.mirrors.dragonos.org.cn/DragonOS-Community/num-traits.git", rev="…
/DragonOS/docs/kernel/libs/lib_ui/
H A Dscm.md8 ## traits section in 屏幕管理器(SCM)
/DragonOS/kernel/src/driver/clocksource/
H A Dtimer_riscv.rs4 use bitmap::{traits::BitMapOps, StaticBitmap};
/DragonOS/kernel/src/libs/
H A Dcpumask.rs3 use bitmap::{traits::BitMapOps, AllocBitmap};
/DragonOS/kernel/src/mm/
H A Dno_init.rs11 use bitmap::{traits::BitMapOps, StaticBitmap};
/DragonOS/kernel/src/driver/block/
H A Dvirtio_blk.rs9 use bitmap::traits::BitMapOps;
/DragonOS/kernel/crates/bitmap/tests/
H A Dstatic-bitmap.rs3 use bitmap::{traits::BitMapOps, StaticBitmap};
H A Dalloc-bitmap.rs3 use bitmap::{traits::BitMapOps, AllocBitmap};
/DragonOS/kernel/src/driver/tty/virtual_terminal/
H A Dvirtual_console.rs7 use bitmap::{traits::BitMapOps, StaticBitmap};
/DragonOS/kernel/src/driver/tty/tty_ldisc/
H A Dntty.rs4 use bitmap::{traits::BitMapOps, StaticBitmap};
/DragonOS/kernel/crates/rbpf/
H A DREADME.md691 * Implement some traits (`Clone`, `Drop`, `Debug` are good candidates).