@@ -85,6 +85,8 @@ pub struct LocalKey<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Declare a new thread local storage key of type `std::thread::LocalKey`.
|
/// Declare a new thread local storage key of type `std::thread::LocalKey`.
|
||||||
|
///
|
||||||
|
/// See [LocalKey documentation](thread/struct.LocalKey.html) for more information.
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[allow_internal_unstable]
|
#[allow_internal_unstable]
|
||||||
|
|||||||
@@ -66,6 +66,8 @@ pub struct ScopedKey<T> { #[doc(hidden)] pub inner: __impl::KeyInner<T> }
|
|||||||
///
|
///
|
||||||
/// This macro declares a `static` item on which methods are used to get and
|
/// This macro declares a `static` item on which methods are used to get and
|
||||||
/// set the value stored within.
|
/// set the value stored within.
|
||||||
|
///
|
||||||
|
/// See [ScopedKey documentation](thread/struct.ScopedKey.html) for more information.
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
#[allow_internal_unstable]
|
#[allow_internal_unstable]
|
||||||
macro_rules! scoped_thread_local {
|
macro_rules! scoped_thread_local {
|
||||||
|
|||||||
Reference in New Issue
Block a user