Trait tl_proto::BoxedConstructor
source · [−]pub trait BoxedConstructor: Sized {
const TL_ID: u32;
fn boxed_writer(&self) -> BoxedWriter<&Self> { ... }
fn into_boxed_writer(self) -> BoxedWriter<Self> { ... }
}Expand description
Marks bare type with the appropriate constructor id
Required Associated Constants
Provided Methods
fn boxed_writer(&self) -> BoxedWriter<&Self>
fn boxed_writer(&self) -> BoxedWriter<&Self>
Wraps bare type reference into BoxedWriter
fn into_boxed_writer(self) -> BoxedWriter<Self>
fn into_boxed_writer(self) -> BoxedWriter<Self>
Converts bare type into BoxedWriter