Struct read_write_api::RwApiWrapper
source · pub struct RwApiWrapper<'a, T>(pub &'a mut T);
Expand description
RwApi
wrapper for mutable references.
Tuple Fields§
§0: &'a mut T
Wrapped reference.
Trait Implementations§
source§impl<'a, T: Debug> Debug for RwApiWrapper<'a, T>
impl<'a, T: Debug> Debug for RwApiWrapper<'a, T>
source§impl<'a, T> GuardedTarget for &RwApiWrapper<'a, T>
impl<'a, T> GuardedTarget for &RwApiWrapper<'a, T>
source§impl<'a, T> GuardedTarget for &mut RwApiWrapper<'a, T>
impl<'a, T> GuardedTarget for &mut RwApiWrapper<'a, T>
source§impl<'a, T> GuardedTarget for RwApiWrapper<'a, T>
impl<'a, T> GuardedTarget for RwApiWrapper<'a, T>
source§impl<'a, T: Hash> Hash for RwApiWrapper<'a, T>
impl<'a, T: Hash> Hash for RwApiWrapper<'a, T>
source§impl<'a, T: Ord> Ord for RwApiWrapper<'a, T>
impl<'a, T: Ord> Ord for RwApiWrapper<'a, T>
source§fn cmp(&self, other: &RwApiWrapper<'a, T>) -> Ordering
fn cmp(&self, other: &RwApiWrapper<'a, T>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a, T: PartialEq> PartialEq<RwApiWrapper<'a, T>> for RwApiWrapper<'a, T>
impl<'a, T: PartialEq> PartialEq<RwApiWrapper<'a, T>> for RwApiWrapper<'a, T>
source§fn eq(&self, other: &RwApiWrapper<'a, T>) -> bool
fn eq(&self, other: &RwApiWrapper<'a, T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, T: PartialOrd> PartialOrd<RwApiWrapper<'a, T>> for RwApiWrapper<'a, T>
impl<'a, T: PartialOrd> PartialOrd<RwApiWrapper<'a, T>> for RwApiWrapper<'a, T>
source§fn partial_cmp(&self, other: &RwApiWrapper<'a, T>) -> Option<Ordering>
fn partial_cmp(&self, other: &RwApiWrapper<'a, T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, T> ReadApi for &RwApiWrapper<'a, T>
impl<'a, T> ReadApi for &RwApiWrapper<'a, T>
§type ReadGuard<'i> = &'i &'a mut T
where
Self: 'i
type ReadGuard<'i> = &'i &'a mut T where Self: 'i
Self::read
return type.source§fn read(&self) -> &&'a mut T
fn read(&self) -> &&'a mut T
RwLock::read
analogue.source§impl<'a, T> ReadApi for &mut RwApiWrapper<'a, T>
impl<'a, T> ReadApi for &mut RwApiWrapper<'a, T>
§type ReadGuard<'i> = &'i &'a mut T
where
Self: 'i
type ReadGuard<'i> = &'i &'a mut T where Self: 'i
Self::read
return type.source§fn read(&self) -> &&'a mut T
fn read(&self) -> &&'a mut T
RwLock::read
analogue.source§impl<'a, T> ReadApi for RwApiWrapper<'a, T>
impl<'a, T> ReadApi for RwApiWrapper<'a, T>
§type ReadGuard<'i> = &'i &'a mut T
where
Self: 'i
type ReadGuard<'i> = &'i &'a mut T where Self: 'i
Self::read
return type.source§fn read(&self) -> &&'a mut T
fn read(&self) -> &&'a mut T
RwLock::read
analogue.source§impl<'a, T> WriteApi for &mut RwApiWrapper<'a, T>
impl<'a, T> WriteApi for &mut RwApiWrapper<'a, T>
§type WriteGuard<'i> = &'i mut &'a mut T
where
Self: 'i
type WriteGuard<'i> = &'i mut &'a mut T where Self: 'i
Self::write
return type.source§fn write(&mut self) -> &mut &'a mut T
fn write(&mut self) -> &mut &'a mut T
RwLock::write
analogue.source§impl<'a, T> WriteApi for RwApiWrapper<'a, T>
impl<'a, T> WriteApi for RwApiWrapper<'a, T>
§type WriteGuard<'i> = &'i mut &'a mut T
where
Self: 'i
type WriteGuard<'i> = &'i mut &'a mut T where Self: 'i
Self::write
return type.source§fn write(&mut self) -> &mut &'a mut T
fn write(&mut self) -> &mut &'a mut T
RwLock::write
analogue.impl<'a, T: Eq> Eq for RwApiWrapper<'a, T>
impl<'a, T> StructuralEq for RwApiWrapper<'a, T>
impl<'a, T> StructuralPartialEq for RwApiWrapper<'a, T>
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for RwApiWrapper<'a, T>where T: RefUnwindSafe,
impl<'a, T> Send for RwApiWrapper<'a, T>where T: Send,
impl<'a, T> Sync for RwApiWrapper<'a, T>where T: Sync,
impl<'a, T> Unpin for RwApiWrapper<'a, T>
impl<'a, T> !UnwindSafe for RwApiWrapper<'a, 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