pub struct FastClearWeakRwLock<T: FastClear> { /* private fields */ }Implementations§
Source§impl<T: FastClear> FastClearWeakRwLock<T>
impl<T: FastClear> FastClearWeakRwLock<T>
pub fn upgrade_force(&self) -> FastClearArcRwLock<T>
pub fn upgrade(&self) -> Option<FastClearArcRwLock<T>>
Trait Implementations§
Source§impl<T: FastClear> Clone for FastClearWeakRwLock<T>
impl<T: FastClear> Clone for FastClearWeakRwLock<T>
Source§impl<T: FastClear> PartialEq for FastClearWeakRwLock<T>
impl<T: FastClear> PartialEq for FastClearWeakRwLock<T>
Source§impl<T: FastClear> WeakElement for FastClearWeakRwLock<T>
impl<T: FastClear> WeakElement for FastClearWeakRwLock<T>
Source§type Strong = FastClearArcRwLock<T>
type Strong = FastClearArcRwLock<T>
The type at which a weak element can be viewed. Read more
Source§fn new(view: &Self::Strong) -> Self
fn new(view: &Self::Strong) -> Self
Constructs a weak pointer from a strong pointer. Read more
Source§fn view(&self) -> Option<Self::Strong>
fn view(&self) -> Option<Self::Strong>
Acquires a strong pointer from a weak pointer. Read more
Source§fn is_expired(&self) -> bool
fn is_expired(&self) -> bool
Is the given weak element expired? Read more
impl<T: FastClear> Eq for FastClearWeakRwLock<T>
Auto Trait Implementations§
impl<T> Freeze for FastClearWeakRwLock<T>
impl<T> !RefUnwindSafe for FastClearWeakRwLock<T>
impl<T> Send for FastClearWeakRwLock<T>
impl<T> Sync for FastClearWeakRwLock<T>
impl<T> Unpin for FastClearWeakRwLock<T>
impl<T> !UnwindSafe for FastClearWeakRwLock<T>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more