Struct serde_mtproto::boxed::Boxed [] [src]

pub struct Boxed<T> { /* fields omitted */ }

A struct that wraps an Identifiable type value to serialize and deserialize as a boxed MTProto data type.

Methods

impl<T: Identifiable> Boxed<T>
[src]

Wrap a value along with its id.

Unwrap the box and return the wrapped value.

Trait Implementations

impl<T: Clone> Clone for Boxed<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Boxed<T>
[src]

Formats the value using the given formatter.

impl<T: Eq> Eq for Boxed<T>
[src]

impl<T: Hash> Hash for Boxed<T>
[src]

Feeds this value into the given [Hasher]. Read more

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

impl<T: PartialEq> PartialEq for Boxed<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: MtProtoSized> MtProtoSized for Boxed<T>
[src]

Compute the size of MTProto binary representation of this value without actually serializing it. Read more