[][src]Struct serde_traitobject::Arc

pub struct Arc<T: ?Sized>(_);

Convenience wrapper around std::sync::Arc that automatically uses serde_traitobject for (de)serialization.

Methods

impl<T> Arc<T>[src]

pub fn new(t: T) -> Self[src]

Create a new Arc wrapper

Methods from Deref<Target = Arc<T>>

Trait Implementations

impl<T: ?Sized> AsRef<Arc<T>> for Arc<T>[src]

impl<T: ?Sized> AsRef<T> for Arc<T>[src]

impl<T: ?Sized> AsMut<Arc<T>> for Arc<T>[src]

impl<T: ?Sized> Into<Arc<T>> for Arc<T>[src]

impl<T: ?Sized> From<Arc<T>> for Arc<T>[src]

impl<T> From<T> for Arc<T>[src]

impl<T: ?Sized> Clone for Arc<T>[src]

impl<T: Default + ?Sized> Default for Arc<T>[src]

impl<T: Eq + ?Sized> Eq for Arc<T>[src]

impl<T: Ord + ?Sized> Ord for Arc<T>[src]

impl<T: PartialEq + ?Sized> PartialEq<Arc<T>> for Arc<T>[src]

impl<T: PartialOrd + ?Sized> PartialOrd<Arc<T>> for Arc<T>[src]

impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Arc<U>> for Arc<T>[src]

impl<T: Display + ?Sized> Display for Arc<T>[src]

impl<T: Debug + ?Sized> Debug for Arc<T>[src]

impl<T: ?Sized> Deref for Arc<T>[src]

type Target = Arc<T>

The resulting type after dereferencing.

impl<T: ?Sized> DerefMut for Arc<T>[src]

impl<T: Hash + ?Sized> Hash for Arc<T>[src]

impl<T: ?Sized> StructuralPartialEq for Arc<T>[src]

impl<T: ?Sized> StructuralEq for Arc<T>[src]

impl<T: ?Sized> Borrow<T> for Arc<T>[src]

impl<T: Serialize + ?Sized + 'static> Serialize for Arc<T>[src]

impl<'de, T: Deserialize + ?Sized + 'static> Deserialize<'de> for Arc<T>[src]

Auto Trait Implementations

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

impl<T: ?Sized> RefUnwindSafe for Arc<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<T> Deserialize for T where
    T: DeserializeOwned
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> From<!> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Type for T[src]

type Meta = Concrete

Type of metadata for type.

impl<T> Type for T where
    T: ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]