Skip to main content

Module v1

Module v1 

1.6.0 · Source
Expand description

The first version of the core prelude.

See the module-level documentation for more.

Re-exports§

pub use v1::Copy;
pub use v1::Copy;
pub use v1::Send;
pub use v1::Sized;
pub use v1::Sync;
pub use v1::Unpin;
pub use v1::Drop;
pub use v1::Fn;
pub use v1::FnMut;
pub use v1::FnOnce;
pub use v1::AsyncFn;
pub use v1::AsyncFnMut;
pub use v1::AsyncFnOnce;
pub use v1::drop;
pub use v1::align_of;
pub use v1::align_of_val;
pub use v1::size_of;
pub use v1::size_of_val;
pub use v1::Clone;
pub use v1::Clone;
pub use v1::Eq;
pub use v1::Eq;
pub use v1::Ord;
pub use v1::Ord;
pub use v1::PartialEq;
pub use v1::PartialEq;
pub use v1::PartialOrd;
pub use v1::PartialOrd;
pub use v1::AsMut;
pub use v1::AsRef;
pub use v1::From;
pub use v1::Into;
pub use v1::Default;
pub use v1::Default;
pub use v1::DoubleEndedIterator;
pub use v1::ExactSizeIterator;
pub use v1::Extend;
pub use v1::IntoIterator;
pub use v1::Iterator;
pub use v1::Option;
pub use v1::None;
pub use v1::Some;
pub use v1::Result;
pub use v1::Err;
pub use v1::Ok;
pub use v1::Debug;
pub use v1::Hash;
pub use v1::assert;
pub use v1::assert_eq;
pub use v1::assert_ne;
pub use v1::cfg;
pub use v1::column;
pub use v1::compile_error;
pub use v1::concat;
pub use v1::debug_assert;
pub use v1::debug_assert_eq;
pub use v1::debug_assert_ne;
pub use v1::file;
pub use v1::format_args;
pub use v1::include;
pub use v1::include_bytes;
pub use v1::include_str;
pub use v1::line;
pub use v1::matches;
pub use v1::module_path;
pub use v1::option_env;
pub use v1::stringify;
pub use v1::todo;
pub use v1::try;
pub use v1::unimplemented;
pub use v1::unreachable;
pub use v1::write;
pub use v1::writeln;
pub use v1::env;
pub use v1::panic;
pub use v1::cfg_select;
pub use v1::concat_bytes;
pub use v1::const_format_args;
pub use v1::log_syntax;
pub use v1::pattern_type;
pub use v1::trace_macros;
pub use v1::derive;

Macros§

derefExperimental
Unstable placeholder for deref patterns.
type_ascribeExperimental
Unstable placeholder for type ascription.

Attribute Macros§

global_allocator
Attribute macro applied to a static to register it as a global allocator.
test
Attribute macro applied to a function to turn it into a unit test.
alloc_error_handlerExperimental
Attribute macro applied to a function to register it as a handler for allocation failure.
benchExperimental
Attribute macro applied to a function to turn it into a benchmark test.
cfg_accessibleExperimental
Keeps the item it’s applied to if the passed path is accessible, and removes it otherwise.
cfg_evalExperimental
Expands all #[cfg] and #[cfg_attr] attributes in the code fragment it’s applied to.
define_opaqueExperimental
Provide a list of type aliases and other opaque-type-containing type definitions to an item with a body. This list will be used in that body to define opaque types’ hidden types. Can only be applied to things that have bodies.
derive_constExperimental
Attribute macro used to apply derive macros for implementing traits in a const context.
eiiExperimental
Externally Implementable Item: Defines an attribute macro that can override the item this is applied to.
eii_declarationExperimental
Impl detail of EII
test_caseExperimental
An implementation detail of the #[test] and #[bench] macros.
unsafe_eiiExperimental
Unsafely Externally Implementable Item: Defines an unsafe attribute macro that can override the item this is applied to.