pub struct RwApiWrapper<'a, T: ?Sized>(pub &'a mut T);
Expand description
Tuple Fields§
§0: &'a mut T
Wrapped reference.
Trait Implementations§
Source§impl<'a, T: ?Sized> DowngradableWriteApi for &mut RwApiWrapper<'a, T>
impl<'a, T: ?Sized> DowngradableWriteApi for &mut RwApiWrapper<'a, T>
Source§type DowngradableWriteGuard<'i> = &'i mut &'a mut T
where
Self: 'i
type DowngradableWriteGuard<'i> = &'i mut &'a mut T where Self: 'i
Self::downgradable_write
return type.Source§fn downgradable_write(&mut self) -> &mut &'a mut T
fn downgradable_write(&mut self) -> &mut &'a mut T
WriteApi::write
analogue, which return type can be downgraded.Source§impl<'a, T: ?Sized> DowngradableWriteApi for RwApiWrapper<'a, T>
impl<'a, T: ?Sized> DowngradableWriteApi for RwApiWrapper<'a, T>
Source§type DowngradableWriteGuard<'i> = &'i mut &'a mut T
where
Self: 'i
type DowngradableWriteGuard<'i> = &'i mut &'a mut T where Self: 'i
Self::downgradable_write
return type.Source§fn downgradable_write(&mut self) -> &mut &'a mut T
fn downgradable_write(&mut self) -> &mut &'a mut T
WriteApi::write
analogue, which return type can be downgraded.Source§impl<'a, T: ?Sized> GuardedTarget for &RwApiWrapper<'a, T>
impl<'a, T: ?Sized> GuardedTarget for &RwApiWrapper<'a, T>
Source§impl<'a, T: ?Sized> GuardedTarget for &mut RwApiWrapper<'a, T>
impl<'a, T: ?Sized> GuardedTarget for &mut RwApiWrapper<'a, T>
Source§impl<'a, T: ?Sized> GuardedTarget for RwApiWrapper<'a, T>
impl<'a, T: ?Sized> GuardedTarget for RwApiWrapper<'a, T>
Source§impl<'a, T: Ord + ?Sized> Ord for RwApiWrapper<'a, T>
impl<'a, T: Ord + ?Sized> 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: PartialOrd + ?Sized> PartialOrd for RwApiWrapper<'a, T>
impl<'a, T: PartialOrd + ?Sized> PartialOrd for RwApiWrapper<'a, T>
Source§impl<'a, T: ?Sized> ReadApi for &RwApiWrapper<'a, T>
impl<'a, T: ?Sized> ReadApi for &RwApiWrapper<'a, T>
Source§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
Generalizes
RwLock::read
.Source§impl<'a, T: ?Sized> ReadApi for &mut RwApiWrapper<'a, T>
impl<'a, T: ?Sized> ReadApi for &mut RwApiWrapper<'a, T>
Source§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
Generalizes
RwLock::read
.Source§impl<'a, T: ?Sized> ReadApi for RwApiWrapper<'a, T>
impl<'a, T: ?Sized> ReadApi for RwApiWrapper<'a, T>
Source§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
Generalizes
RwLock::read
.Source§impl<'a, T: ?Sized> UpgradableReadApi for &mut RwApiWrapper<'a, T>
impl<'a, T: ?Sized> UpgradableReadApi for &mut RwApiWrapper<'a, T>
Source§type UpgradableReadGuard<'i> = &'i mut &'a mut T
where
Self: 'i
type UpgradableReadGuard<'i> = &'i mut &'a mut T where Self: 'i
Self::upgradable_read
return type.Source§fn upgradable_read(&mut self) -> &mut &'a mut T
fn upgradable_read(&mut self) -> &mut &'a mut T
Generalizes
RwLock::upgradable_read
.Source§impl<'a, T: ?Sized> UpgradableReadApi for RwApiWrapper<'a, T>
impl<'a, T: ?Sized> UpgradableReadApi for RwApiWrapper<'a, T>
Source§type UpgradableReadGuard<'i> = &'i mut &'a mut T
where
Self: 'i
type UpgradableReadGuard<'i> = &'i mut &'a mut T where Self: 'i
Self::upgradable_read
return type.Source§fn upgradable_read(&mut self) -> &mut &'a mut T
fn upgradable_read(&mut self) -> &mut &'a mut T
Generalizes
RwLock::upgradable_read
.Source§impl<'a, T: ?Sized> WriteApi for &mut RwApiWrapper<'a, T>
impl<'a, T: ?Sized> WriteApi for &mut RwApiWrapper<'a, T>
Source§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
Generalizes
RwLock::write
.Source§impl<'a, T: ?Sized> WriteApi for RwApiWrapper<'a, T>
impl<'a, T: ?Sized> WriteApi for RwApiWrapper<'a, T>
Source§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
Generalizes
RwLock::write
.impl<'a, T: Eq + ?Sized> Eq for RwApiWrapper<'a, T>
impl<'a, T: ?Sized> StructuralPartialEq for RwApiWrapper<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for RwApiWrapper<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for RwApiWrapper<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for RwApiWrapper<'a, T>
impl<'a, T> Sync for RwApiWrapper<'a, T>
impl<'a, T> Unpin for RwApiWrapper<'a, T>where
T: ?Sized,
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