Struct tl_proto::BoxedWrapper
source · [−]pub struct BoxedWrapper<T>(pub T);Expand description
Simple helper which contains inner value and constructor id.
Used mostly for serialization, so can contain references
Tuple Fields
0: TTrait Implementations
sourceimpl<T: Clone> Clone for BoxedWrapper<T>
impl<T: Clone> Clone for BoxedWrapper<T>
sourcefn clone(&self) -> BoxedWrapper<T>
fn clone(&self) -> BoxedWrapper<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl<T: Debug> Debug for BoxedWrapper<T>
impl<T: Debug> Debug for BoxedWrapper<T>
sourceimpl<'a, T> TlRead<'a> for BoxedWrapper<T>where
T: BoxedConstructor + TlRead<'a, Repr = Bare>,
impl<'a, T> TlRead<'a> for BoxedWrapper<T>where
T: BoxedConstructor + TlRead<'a, Repr = Bare>,
sourceimpl<T> TlWrite for BoxedWrapper<T>where
T: BoxedConstructor + TlWrite<Repr = Bare>,
impl<T> TlWrite for BoxedWrapper<T>where
T: BoxedConstructor + TlWrite<Repr = Bare>,
Auto Trait Implementations
impl<T> RefUnwindSafe for BoxedWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for BoxedWrapper<T>where
T: Send,
impl<T> Sync for BoxedWrapper<T>where
T: Sync,
impl<T> Unpin for BoxedWrapper<T>where
T: Unpin,
impl<T> UnwindSafe for BoxedWrapper<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more