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: OutputType<'a>,
}
Expand description
Type or function declaration
Fields§
§variant: &'a str
§tl_id: Option<u32>
§type_parameters: Vec<Field<'a>>
§fields: Vec<Field<'a>>
§output: OutputType<'a>
Implementations§
Source§impl Constructor<'_>
impl Constructor<'_>
pub fn as_normalized(&self) -> String
pub fn compute_tl_id(&self) -> u32
Trait Implementations§
Source§impl<'a> Clone for Constructor<'a>
impl<'a> Clone for Constructor<'a>
Source§fn clone(&self) -> Constructor<'a>
fn clone(&self) -> Constructor<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for Constructor<'a>
impl<'a> Debug for Constructor<'a>
Source§impl<'a> PartialEq for Constructor<'a>
impl<'a> PartialEq for Constructor<'a>
impl<'a> Eq for Constructor<'a>
impl<'a> StructuralPartialEq for Constructor<'a>
Auto Trait Implementations§
impl<'a> Freeze for Constructor<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more