Expand description
Rust 标准库的 prelude 的第一个版本。
有关更多信息,请参见 模块级文档。
Re-exports
pub use core::prelude::v1::concat_bytes;
Experimentalpub use crate::marker::Send;
pub use crate::marker::Sized;
pub use crate::marker::Sync;
pub use crate::marker::Unpin;
pub use crate::ops::Drop;
pub use crate::ops::Fn;
pub use crate::ops::FnMut;
pub use crate::ops::FnOnce;
pub use crate::mem::drop;
pub use crate::convert::AsMut;
pub use crate::convert::AsRef;
pub use crate::convert::From;
pub use crate::convert::Into;
pub use crate::iter::DoubleEndedIterator;
pub use crate::iter::ExactSizeIterator;
pub use crate::iter::Extend;
pub use crate::iter::IntoIterator;
pub use crate::iter::Iterator;
pub use crate::option::Option;
pub use crate::option::Option::None;
pub use crate::option::Option::Some;
pub use crate::result::Result;
pub use crate::result::Result::Err;
pub use crate::result::Result::Ok;
pub use core::prelude::v1::assert;
pub use core::prelude::v1::cfg;
pub use core::prelude::v1::column;
pub use core::prelude::v1::compile_error;
pub use core::prelude::v1::concat;
pub use core::prelude::v1::concat_idents;
Experimentalpub use core::prelude::v1::env;
pub use core::prelude::v1::file;
pub use core::prelude::v1::format_args;
pub use core::prelude::v1::format_args_nl;
Experimentalpub use core::prelude::v1::include;
pub use core::prelude::v1::include_bytes;
pub use core::prelude::v1::include_str;
pub use core::prelude::v1::line;
pub use core::prelude::v1::log_syntax;
Experimentalpub use core::prelude::v1::module_path;
pub use core::prelude::v1::option_env;
pub use core::prelude::v1::stringify;
pub use core::prelude::v1::trace_macros;
Experimentalpub use core::prelude::v1::Clone;
pub use core::prelude::v1::Clone;
pub use core::prelude::v1::Copy;
pub use core::prelude::v1::Copy;
pub use core::prelude::v1::Debug;
pub use core::prelude::v1::Default;
pub use core::prelude::v1::Default;
pub use core::prelude::v1::Eq;
pub use core::prelude::v1::Eq;
pub use core::prelude::v1::Hash;
pub use core::prelude::v1::Ord;
pub use core::prelude::v1::Ord;
pub use core::prelude::v1::PartialEq;
pub use core::prelude::v1::PartialEq;
pub use core::prelude::v1::PartialOrd;
pub use core::prelude::v1::PartialOrd;
pub use crate::borrow::ToOwned;
pub use crate::boxed::Box;
pub use crate::string::String;
pub use crate::string::ToString;
pub use crate::vec::Vec;
Macros
- type_ascribeExperimental类型归属的不稳定占位符。
Attribute Macros
- alloc_error_handlerExperimental属性宏应用于函数以将其注册为分配失败的处理程序。
- benchExperimental属性宏应用于函数以将其转换为基准测试。
- cfg_accessibleExperimental如果可以访问传递的路径,则保留适用于它的项,否则将其删除。
- cfg_evalExperimental扩展其所应用的代码片段中的所有
#[cfg]
和#[cfg_attr]
属性。 - derive_constExperimental属性宏用于应用派生宏以在 const 上下文中实现 traits。
- test_caseExperimental
#[test]
和#[bench]
宏的实现细节。 - 用于应用派生宏的属性宏。
- 将属性宏应用于静态以将其注册为分配器。
- 将属性宏应用于函数以将其转换为单元测试。