pub enum RefCountedType {
Rc,
Arc,
}Expand description
Reference-counted Smart Pointers
Variants§
Trait Implementations§
Source§impl Clone for RefCountedType
impl Clone for RefCountedType
Source§fn clone(&self) -> RefCountedType
fn clone(&self) -> RefCountedType
Returns a duplicate 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 Debug for RefCountedType
impl Debug for RefCountedType
Source§impl<'de> Deserialize<'de> for RefCountedType
impl<'de> Deserialize<'de> for RefCountedType
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RefCountedType
impl Display for RefCountedType
Source§impl FromStr for RefCountedType
impl FromStr for RefCountedType
Source§impl PartialEq for RefCountedType
impl PartialEq for RefCountedType
Source§impl Serialize for RefCountedType
impl Serialize for RefCountedType
Source§impl TryFrom<&str> for RefCountedType
impl TryFrom<&str> for RefCountedType
impl Copy for RefCountedType
impl Eq for RefCountedType
impl StructuralPartialEq for RefCountedType
Auto Trait Implementations§
impl Freeze for RefCountedType
impl RefUnwindSafe for RefCountedType
impl Send for RefCountedType
impl Sync for RefCountedType
impl Unpin for RefCountedType
impl UnwindSafe for RefCountedType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.