Struct serde_traitobject::Arc
source · pub struct Arc<T: ?Sized>(_);
Expand description
Convenience wrapper around std::sync::Arcserde_traitobject
for (de)serialization.
Implementations§
Trait Implementations§
source§impl<'de, T: Deserialize + ?Sized + 'static> Deserialize<'de> for Arc<T>
impl<'de, T: Deserialize + ?Sized + 'static> Deserialize<'de> for Arc<T>
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<T: Ord + ?Sized> Ord for Arc<T>
impl<T: Ord + ?Sized> Ord for Arc<T>
source§impl<T: PartialEq + ?Sized> PartialEq<Arc<T>> for Arc<T>
impl<T: PartialEq + ?Sized> PartialEq<Arc<T>> for Arc<T>
source§impl<T: PartialOrd + ?Sized> PartialOrd<Arc<T>> for Arc<T>
impl<T: PartialOrd + ?Sized> PartialOrd<Arc<T>> for Arc<T>
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 moreimpl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Arc<U>> for Arc<T>
impl<T: Eq + ?Sized> Eq for Arc<T>
impl<T: ?Sized> StructuralEq for Arc<T>
impl<T: ?Sized> StructuralPartialEq for Arc<T>
Auto Trait Implementations§
impl<T: ?Sized> RefUnwindSafe for Arc<T>where
T: RefUnwindSafe,
impl<T: ?Sized> Send for Arc<T>where
T: Send + Sync,
impl<T: ?Sized> Sync for Arc<T>where
T: Send + Sync,
impl<T: ?Sized> Unpin for Arc<T>
impl<T: ?Sized> UnwindSafe for Arc<T>where
T: RefUnwindSafe,
Blanket Implementations§
source§impl<T> Serialize for Twhere
T: Serialize + ?Sized,
impl<T> Serialize for Twhere
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
source§impl<T> Type for T
impl<T> Type for T
source§const METATYPE: MetaType = MetaType::Concrete
const METATYPE: MetaType = MetaType::Concrete
Enum describing whether a type is
TraitObject
, Slice
or Concrete
.source§fn dangling(_t: <T as Type>::Meta) -> NonNull<T>
fn dangling(_t: <T as Type>::Meta) -> NonNull<T>
Create a dangling non-null
*const Self
with the provided Self::Meta
.source§fn fatten(thin: *mut (), _t: <T as Type>::Meta) -> *mut T
fn fatten(thin: *mut (), _t: <T as Type>::Meta) -> *mut T
Create a
*mut Self
with the provided Self::Meta
.source§fn meta_type(self: *const Self) -> MetaType
fn meta_type(self: *const Self) -> MetaType
Helper method describing whether a type is
TraitObject
, Slice
or Concrete
.source§impl<T> Type for Twhere
T: ?Sized,
impl<T> Type for Twhere
T: ?Sized,
source§default fn dangling(t: <T as Type>::Meta) -> NonNull<T>
default fn dangling(t: <T as Type>::Meta) -> NonNull<T>
Create a dangling non-null
*const Self
with the provided Self::Meta
.source§default fn fatten(thin: *mut (), t: <T as Type>::Meta) -> *mut T
default fn fatten(thin: *mut (), t: <T as Type>::Meta) -> *mut T
Create a
*mut Self
with the provided Self::Meta
.source§fn meta_type(self: *const Self) -> MetaType
fn meta_type(self: *const Self) -> MetaType
Helper method describing whether a type is
TraitObject
, Slice
or Concrete
.