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 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 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<RefCountedType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<RefCountedType, <D as Deserializer<'de>>::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§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<RefCountedType, <RefCountedType as FromStr>::Err>
fn from_str(s: &str) -> Result<RefCountedType, <RefCountedType as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreSource§impl PartialEq for RefCountedType
impl PartialEq for RefCountedType
Source§impl Serialize for RefCountedType
impl Serialize for RefCountedType
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&str> for RefCountedType
impl TryFrom<&str> for RefCountedType
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(
s: &str,
) -> Result<RefCountedType, <RefCountedType as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<RefCountedType, <RefCountedType as TryFrom<&str>>::Error>
Performs the conversion.
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.