Expand description
The kernel
prelude.
These are the most common items used by Rust code in the kernel, intended to be imported by all Rust code, for convenience.
Examples
use kernel::prelude::*;
Re-exports
pub use core::pin::Pin;
pub use alloc::boxed::Box;
pub use alloc::string::String;
pub use alloc::vec::Vec;
pub use macros::module;
pub use macros::vtable;
pub use super::build_assert;
pub use super::dbg;
pub use super::dev_alert;
pub use super::dev_crit;
pub use super::dev_dbg;
pub use super::dev_emerg;
pub use super::dev_err;
pub use super::dev_info;
pub use super::dev_notice;
pub use super::dev_warn;
pub use super::fmt;
pub use super::pr_alert;
pub use super::pr_crit;
pub use super::pr_debug;
pub use super::pr_emerg;
pub use super::pr_err;
pub use super::pr_info;
pub use super::pr_notice;
pub use super::pr_warn;
pub use super::module_fs;
pub use super::module_misc_device;
pub use super::static_assert;
pub use super::error::Error;
pub use super::error::Result;
pub use super::str::CStr;
pub use super::ARef;
pub use super::ThisModule;
pub use super::error::code::*;