Struct rustc_data_structures::sync::LockCell
[−]
[src]
pub struct LockCell<T>(_);
Methods
impl<T> LockCell<T>
[src]
pub fn new(inner: T) -> Self
[src]
pub fn into_inner(self) -> T
[src]
pub fn set(&self, new_inner: T)
[src]
pub fn get(&self) -> T where
T: Copy,
[src]
T: Copy,
pub fn set_mut(&mut self, new_inner: T)
[src]
pub fn get_mut(&mut self) -> T where
T: Copy,
[src]
T: Copy,
impl<T> LockCell<Option<T>>
[src]
Trait Implementations
impl<T: Copy + Debug> Debug for LockCell<T>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: Default> Default for LockCell<T>
[src]
impl<T: PartialEq + Copy> PartialEq for LockCell<T>
[src]
fn eq(&self, other: &LockCell<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<T: Eq + Copy> Eq for LockCell<T>
[src]
impl<T: PartialOrd + Copy> PartialOrd for LockCell<T>
[src]
fn partial_cmp(&self, other: &LockCell<T>) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &LockCell<T>) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &LockCell<T>) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &LockCell<T>) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &LockCell<T>) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T: Ord + Copy> Ord for LockCell<T>
[src]
fn cmp(&self, other: &LockCell<T>) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
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]
Compares and returns the minimum of two values. Read more