[−][src]Struct rustc_data_structures::sync::LockCell
Methods
impl<T> LockCell<T>
[src]
impl<T> LockCell<T>
pub fn new(inner: T) -> Self
[src]
pub fn new(inner: T) -> Self
pub fn into_inner(self) -> T
[src]
pub fn into_inner(self) -> T
pub fn set(&self, new_inner: T)
[src]
pub fn set(&self, new_inner: T)
pub fn get(&self) -> T where
T: Copy,
[src]
pub fn get(&self) -> T where
T: Copy,
pub fn set_mut(&mut self, new_inner: T)
[src]
pub fn set_mut(&mut self, new_inner: T)
pub fn get_mut(&mut self) -> T where
T: Copy,
[src]
pub fn get_mut(&mut self) -> T where
T: Copy,
impl<T> LockCell<Option<T>>
[src]
impl<T> LockCell<Option<T>>
Trait Implementations
impl<T: Eq + Copy> Eq for LockCell<T>
[src]
impl<T: Eq + Copy> Eq for LockCell<T>
impl<T: PartialOrd + Copy> PartialOrd<LockCell<T>> for LockCell<T>
[src]
impl<T: PartialOrd + Copy> PartialOrd<LockCell<T>> for LockCell<T>
fn partial_cmp(&self, other: &LockCell<T>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &LockCell<T>) -> Option<Ordering>
fn lt(&self, other: &LockCell<T>) -> bool
[src]
fn lt(&self, other: &LockCell<T>) -> bool
fn le(&self, other: &LockCell<T>) -> bool
[src]
fn le(&self, other: &LockCell<T>) -> bool
fn gt(&self, other: &LockCell<T>) -> bool
[src]
fn gt(&self, other: &LockCell<T>) -> bool
fn ge(&self, other: &LockCell<T>) -> bool
[src]
fn ge(&self, other: &LockCell<T>) -> bool
impl<T: Default> Default for LockCell<T>
[src]
impl<T: Default> Default for LockCell<T>
impl<T: PartialEq + Copy> PartialEq<LockCell<T>> for LockCell<T>
[src]
impl<T: PartialEq + Copy> PartialEq<LockCell<T>> for LockCell<T>
fn eq(&self, other: &LockCell<T>) -> bool
[src]
fn eq(&self, other: &LockCell<T>) -> bool
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl<T: Ord + Copy> Ord for LockCell<T>
[src]
impl<T: Ord + Copy> Ord for LockCell<T>
fn cmp(&self, other: &LockCell<T>) -> Ordering
[src]
fn cmp(&self, other: &LockCell<T>) -> Ordering
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
1.21.0
[src]Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0
[src]Compares and returns the minimum of two values. Read more
impl<T: Copy + Debug> Debug for LockCell<T>
[src]
impl<T: Copy + Debug> Debug for LockCell<T>
Auto Trait Implementations
Blanket Implementations
impl<T> Erased for T
[src]
impl<T> Erased for T
impl<T> Send for T where
T: ?Sized,
[src]
impl<T> Send for T where
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
impl<T> Sync for T where
T: ?Sized,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
ⓘImportant traits for &'_ mut Ifn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'_ mut I
fn borrow_mut(&mut self) -> &mut T
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<E> SpecializationError for E
[src]
impl<E> SpecializationError for E
impl<T> Erased for T
impl<T> Erased for T
impl<E> SpecializationError for E
[src]
impl<E> SpecializationError for E
impl<T> Erased for T
[src]
impl<T> Erased for T
impl<T> Send for T where
T: ?Sized,
[src]
impl<T> Send for T where
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
impl<T> Sync for T where
T: ?Sized,
impl<T> Erased for T
impl<T> Erased for T