[−][src]Struct reffers::arc::RefMut
An Arc which has mutable access to the inner value. Only one RefMut can exist, and cannot coexist with any Ref.
Methods
impl<T, M: BitMask<Num = usize>> RefMut<T, M>
[src]
impl<M: BitMask<Num = usize>> RefMut<str, M>
[src]
impl<T, M: BitMask<Num = usize>> RefMut<[T], M>
[src]
pub fn new_slice<I: ExactSizeIterator<Item = T>>(t: I) -> Self
[src]
Creates a new slice reference from an iterator.
impl<T: ?Sized + Repr, M: BitMask<Num = usize>> RefMut<T, M>
[src]
pub fn get_weak(&self) -> Weak<T, M>
[src]
Returns a new Weak reference, or panics if there are no such references available
pub fn get_strong(&self) -> Strong<T, M>
[src]
Returns a new Strong reference, or panics if there are no such references available
pub fn try_get_weak(&self) -> Result<Weak<T, M>, State>
[src]
Returns a new Weak reference, or returns an error if there are no such references available
pub fn try_get_strong(&self) -> Result<Strong<T, M>, State>
[src]
Returns a new Strong reference, or returns an error if there are no such references available
pub fn state(&self) -> State
[src]
Returns the current state
pub fn unpoison(&self) -> Result<(), State>
[src]
Reverts poisoning
Poisoning happens when a RefMut is dropped during a panic.
Trait Implementations
impl<T: Send, M: Send + BitMask<Num = usize>> Send for RefMut<T, M>
[src]
impl<T: Send, M: Send + BitMask<Num = usize>> Sync for RefMut<T, M>
[src]
impl<T: ?Sized + Repr, M: BitMask<Num = usize>> Drop for RefMut<T, M>
[src]
impl<T: ?Sized + Repr, M: BitMask<Num = usize>> AsRef<T> for RefMut<T, M>
[src]
impl<T, M: BitMask<Num = usize>> From<T> for RefMut<T, M>
[src]
impl<T: Default, M: BitMask<Num = usize>> Default for RefMut<T, M>
[src]
impl<T: ?Sized + Repr + Eq, M: BitMask<Num = usize>> Eq for RefMut<T, M>
[src]
impl<T: ?Sized + Repr + Ord, M: BitMask<Num = usize>> Ord for RefMut<T, M>
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T: ?Sized + Repr + PartialEq, M: BitMask<Num = usize>> PartialEq<RefMut<T, M>> for RefMut<T, M>
[src]
impl<T: ?Sized + Repr + PartialOrd, M: BitMask<Num = usize>> PartialOrd<RefMut<T, M>> for RefMut<T, M>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
fn lt(&self, other: &Self) -> bool
[src]
fn le(&self, other: &Self) -> bool
[src]
fn gt(&self, other: &Self) -> bool
[src]
fn ge(&self, other: &Self) -> bool
[src]
impl<T: ?Sized + Repr + Display, M: BitMask<Num = usize>> Display for RefMut<T, M>
[src]
impl<T: Debug + ?Sized + Repr, M: Debug + BitMask<Num = usize>> Debug for RefMut<T, M>
[src]
impl<T: ?Sized + Repr, M: BitMask<Num = usize>> Deref for RefMut<T, M>
[src]
impl<T: ?Sized + Repr, M: BitMask<Num = usize>> DerefMut for RefMut<T, M>
[src]
impl<T: ?Sized + Repr + Hash, M: BitMask<Num = usize>> Hash for RefMut<T, M>
[src]
fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: ?Sized + Repr, M: BitMask<Num = usize>> Borrow<T> for RefMut<T, M>
[src]
impl<T: ?Sized + Repr, M: BitMask<Num = usize>> StableDeref for RefMut<T, M>
[src]
Auto Trait Implementations
impl<T: ?Sized, M> Unpin for RefMut<T, M> where
<T as Repr>::Store: Unpin,
<T as Repr>::Store: Unpin,
impl<T, M = usize> !UnwindSafe for RefMut<T, M>
impl<T, M = usize> !RefUnwindSafe for RefMut<T, M>
Blanket Implementations
impl<T> Repr for T
[src]
type Store = T
fn convert(*mut T) -> *mut T
[src]
unsafe fn deallocate_mem<M>(&mut UnsafeCell<RCell<<T as Repr>::Store, M>>) where
M: BitMask,
[src]
M: BitMask,
impl<T> Repr for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<!> for T
[src]
impl<T> From<T> for T
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,