Struct tl_scheme::Constructor
source · [−]pub struct Constructor<'a> {
pub variant: &'a str,
pub tl_id: Option<u32>,
pub type_parameters: Vec<Field<'a>>,
pub fields: Vec<Field<'a>>,
pub output: Type<'a>,
}Fields
variant: &'a strtl_id: Option<u32>type_parameters: Vec<Field<'a>>fields: Vec<Field<'a>>output: Type<'a>Implementations
sourceimpl<'a> Constructor<'a>
impl<'a> Constructor<'a>
pub fn compute_tl_id(&self) -> u32
Trait Implementations
sourceimpl<'a> Clone for Constructor<'a>
impl<'a> Clone for Constructor<'a>
sourcefn clone(&self) -> Constructor<'a>
fn clone(&self) -> Constructor<'a>
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 more
Auto Trait Implementations
impl<'a> RefUnwindSafe for Constructor<'a>
impl<'a> Send for Constructor<'a>
impl<'a> Sync for Constructor<'a>
impl<'a> Unpin for Constructor<'a>
impl<'a> UnwindSafe for Constructor<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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