[][src]Struct swc_common::sync::LockCell

pub struct LockCell<T>(_);

Implementations

impl<T> LockCell<T>[src]

pub fn new(inner: T) -> Self[src]

pub fn set(&self, new_inner: T)[src]

pub fn get(&self) -> T where
    T: Copy
[src]

Trait Implementations

impl<T: Copy + Debug> Debug for LockCell<T>[src]

impl<T: Default> Default for LockCell<T>[src]

fn default() -> LockCell<T>[src]

Creates a LockCell<T>, with the Default value for T.

impl<T: Eq + Copy> Eq for LockCell<T>[src]

impl<T: Ord + Copy> Ord for LockCell<T>[src]

impl<T: PartialEq + Copy> PartialEq<LockCell<T>> for LockCell<T>[src]

impl<T: PartialOrd + Copy> PartialOrd<LockCell<T>> for LockCell<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for LockCell<T>

impl<T> Send for LockCell<T> where
    T: Send

impl<T> !Sync for LockCell<T>

impl<T> Unpin for LockCell<T> where
    T: Unpin

impl<T> UnwindSafe for LockCell<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.