[][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> Clone for Arc<T>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

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

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

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

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

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

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

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

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

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

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

impl<T: ?Sized> DerefMut 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: Hash + ?Sized> Hash for Arc<T>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Arc<U>> 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> Sync for Arc<T> where
    T: Send + Sync

impl<T: ?Sized> Send for Arc<T> where
    T: Send + Sync

impl<T: ?Sized> Unpin for Arc<T>

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

impl<T: ?Sized> UnwindSafe 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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

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, V> SliceConcat<T> for V where
    T: Clone,
    V: Borrow<[T]>, 
[src]

type Output = Vec<T>

🔬 This is a nightly-only experimental API. (slice_concat_trait)

The resulting type after concatenation

impl<S> SliceConcat<str> for S where
    S: Borrow<str>, 
[src]

type Output = String

🔬 This is a nightly-only experimental API. (slice_concat_trait)

The resulting type after concatenation

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

impl<T> Borrow<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> Serialize for T where
    T: Serialize + ?Sized
[src]