pub struct U<T> { /* private fields */ }Expand description
Unsafe lock-free type, please manually ensure access safety, API is consistent with AtomicCell unsafe 无锁类型, 请手动保证访问安全, api 与 AtomicCell 一致
Implementations§
Trait Implementations§
Source§impl<'de, T: Deserialize<'de>> Deserialize<'de> for U<T>
impl<'de, T: Deserialize<'de>> Deserialize<'de> for U<T>
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T: Eq> Eq for U<T>
impl<T: Send> Send for U<T>
impl<T: Sync> Sync for U<T>
Auto Trait Implementations§
impl<T> !Freeze for U<T>
impl<T> !RefUnwindSafe for U<T>
impl<T> Unpin for U<T>where
T: Unpin,
impl<T> UnwindSafe for U<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more