Struct rustc_data_structures::sync::Lock
[−]
[src]
pub struct Lock<T>(_);
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Methods
impl<T> Lock<T>
[src]
impl<T> Lock<T>
pub fn new(inner: T) -> Self
[src]
pub fn new(inner: T) -> Self
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn into_inner(self) -> T
[src]
pub fn into_inner(self) -> T
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
ⓘImportant traits for &'a mut Rpub fn get_mut(&mut self) -> &mut T
[src]
pub fn get_mut(&mut self) -> &mut T
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn lock(&self) -> LockGuard<T>
[src]
pub fn lock(&self) -> LockGuard<T>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn with_lock<F: FnOnce(&mut T) -> R, R>(&self, f: F) -> R
[src]
pub fn with_lock<F: FnOnce(&mut T) -> R, R>(&self, f: F) -> R
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn borrow(&self) -> LockGuard<T>
[src]
pub fn borrow(&self) -> LockGuard<T>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn borrow_mut(&self) -> LockGuard<T>
[src]
pub fn borrow_mut(&self) -> LockGuard<T>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Trait Implementations
impl<T: Debug> Debug for Lock<T>
[src]
impl<T: Debug> Debug for Lock<T>
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Default> Default for Lock<T>
[src]
impl<T: Default> Default for Lock<T>
impl<T: Clone> Clone for Lock<T>
[src]
impl<T: Clone> Clone for Lock<T>