Struct toad_common::stem::Stem
source · pub struct Stem<T>(_);Expand description
A thread-safe mutable memory location that allows for many concurrent readers or a single writer.
When feature std enabled, this uses std::sync::RwLock.
When std disabled, uses core::cell::Cell.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for Stem<T>
impl<T> Send for Stem<T>where T: Send,
impl<T> Sync for Stem<T>where T: Send + Sync,
impl<T> Unpin for Stem<T>where T: Unpin,
impl<T> UnwindSafe for Stem<T>
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