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]
fn new(inner: T) -> Boxed<T>
Wrap a value along with its id.
fn into_inner(self) -> T
Unwrap the box and return the wrapped value.
Trait Implementations
impl<T: Clone> Clone for Boxed<T>
[src]
fn clone(&self) -> Boxed<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for Boxed<T>
[src]
impl<T: Eq> Eq for Boxed<T>
[src]
impl<T: Hash> Hash for Boxed<T>
[src]
fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: PartialEq> PartialEq for Boxed<T>
[src]
fn eq(&self, __arg_0: &Boxed<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Boxed<T>) -> bool
This method tests for !=
.
impl<T: MtProtoSized> MtProtoSized for Boxed<T>
[src]
fn get_size_hint(&self) -> Result<usize>
Compute the size of MTProto binary representation of this value without actually serializing it. Read more