[][src]Struct serde_traitobject::Rc

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

Convenience wrapper around std::rc::Rc that automatically uses serde_traitobject for (de)serialization.

Implementations

impl<T> Rc<T>[src]

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

Create a new Rc wrapper

Methods from Deref<Target = Rc<T>>

Trait Implementations

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

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

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

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

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

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

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

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

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

type Target = Rc<T>

The resulting type after dereferencing.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Auto Trait Implementations

impl<T> !RefUnwindSafe for Rc<T>

impl<T> !Send for Rc<T>

impl<T> !Sync for Rc<T>

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

impl<T: ?Sized> UnwindSafe for Rc<T> where
    T: RefUnwindSafe

Blanket Implementations

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

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

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

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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

impl<T> Type for T[src]

type Meta = Concrete

Type of metadata for type.