Struct read_write_api::RwApiWrapperOwned
source · pub struct RwApiWrapperOwned<T>(pub T);
Expand description
RwApi
owning wrapper for solitary objects.
Tuple Fields§
§0: T
Wrapped owned object.
Trait Implementations§
source§impl<T: Clone> Clone for RwApiWrapperOwned<T>
impl<T: Clone> Clone for RwApiWrapperOwned<T>
source§fn clone(&self) -> RwApiWrapperOwned<T>
fn clone(&self) -> RwApiWrapperOwned<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for RwApiWrapperOwned<T>
impl<T: Debug> Debug for RwApiWrapperOwned<T>
source§impl<T: Default> Default for RwApiWrapperOwned<T>
impl<T: Default> Default for RwApiWrapperOwned<T>
source§fn default() -> RwApiWrapperOwned<T>
fn default() -> RwApiWrapperOwned<T>
Returns the “default value” for a type. Read more
source§impl<T> GuardedTarget for &RwApiWrapperOwned<T>
impl<T> GuardedTarget for &RwApiWrapperOwned<T>
source§impl<T> GuardedTarget for &mut RwApiWrapperOwned<T>
impl<T> GuardedTarget for &mut RwApiWrapperOwned<T>
source§impl<T> GuardedTarget for RwApiWrapperOwned<T>
impl<T> GuardedTarget for RwApiWrapperOwned<T>
source§impl<T: Hash> Hash for RwApiWrapperOwned<T>
impl<T: Hash> Hash for RwApiWrapperOwned<T>
source§impl<T: Ord> Ord for RwApiWrapperOwned<T>
impl<T: Ord> Ord for RwApiWrapperOwned<T>
source§fn cmp(&self, other: &RwApiWrapperOwned<T>) -> Ordering
fn cmp(&self, other: &RwApiWrapperOwned<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<T: PartialEq> PartialEq<RwApiWrapperOwned<T>> for RwApiWrapperOwned<T>
impl<T: PartialEq> PartialEq<RwApiWrapperOwned<T>> for RwApiWrapperOwned<T>
source§fn eq(&self, other: &RwApiWrapperOwned<T>) -> bool
fn eq(&self, other: &RwApiWrapperOwned<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd> PartialOrd<RwApiWrapperOwned<T>> for RwApiWrapperOwned<T>
impl<T: PartialOrd> PartialOrd<RwApiWrapperOwned<T>> for RwApiWrapperOwned<T>
source§fn partial_cmp(&self, other: &RwApiWrapperOwned<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &RwApiWrapperOwned<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<T> ReadApi for &RwApiWrapperOwned<T>
impl<T> ReadApi for &RwApiWrapperOwned<T>
§type ReadGuard<'i> = &'i T
where
Self: 'i
type ReadGuard<'i> = &'i T where Self: 'i
Self::read
return type.source§fn read(&self) -> &T
fn read(&self) -> &T
RwLock::read
analogue.source§impl<T> ReadApi for &mut RwApiWrapperOwned<T>
impl<T> ReadApi for &mut RwApiWrapperOwned<T>
§type ReadGuard<'i> = &'i T
where
Self: 'i
type ReadGuard<'i> = &'i T where Self: 'i
Self::read
return type.source§fn read(&self) -> &T
fn read(&self) -> &T
RwLock::read
analogue.source§impl<T> ReadApi for RwApiWrapperOwned<T>
impl<T> ReadApi for RwApiWrapperOwned<T>
§type ReadGuard<'i> = &'i T
where
Self: 'i
type ReadGuard<'i> = &'i T where Self: 'i
Self::read
return type.source§fn read(&self) -> &T
fn read(&self) -> &T
RwLock::read
analogue.source§impl<T> WriteApi for &mut RwApiWrapperOwned<T>
impl<T> WriteApi for &mut RwApiWrapperOwned<T>
§type WriteGuard<'i> = &'i mut T
where
Self: 'i
type WriteGuard<'i> = &'i mut T where Self: 'i
Self::write
return type.source§fn write(&mut self) -> &mut T
fn write(&mut self) -> &mut T
RwLock::write
analogue.source§impl<T> WriteApi for RwApiWrapperOwned<T>
impl<T> WriteApi for RwApiWrapperOwned<T>
§type WriteGuard<'i> = &'i mut T
where
Self: 'i
type WriteGuard<'i> = &'i mut T where Self: 'i
Self::write
return type.source§fn write(&mut self) -> &mut T
fn write(&mut self) -> &mut T
RwLock::write
analogue.impl<T: Copy> Copy for RwApiWrapperOwned<T>
impl<T: Eq> Eq for RwApiWrapperOwned<T>
impl<T> StructuralEq for RwApiWrapperOwned<T>
impl<T> StructuralPartialEq for RwApiWrapperOwned<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for RwApiWrapperOwned<T>where T: RefUnwindSafe,
impl<T> Send for RwApiWrapperOwned<T>where T: Send,
impl<T> Sync for RwApiWrapperOwned<T>where T: Sync,
impl<T> Unpin for RwApiWrapperOwned<T>where T: Unpin,
impl<T> UnwindSafe for RwApiWrapperOwned<T>where T: UnwindSafe,
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