pub enum Definition {
    Record(Record),
    OrType(OrType),
    OrTypeWithVariant {
        or_type: String,
        variant: OrTypeVariant,
    },
    Variable(Variable),
    Component(ComponentDefinition),
    WebComponent(WebComponentDefinition),
    Function(Function),
    Export {
        from: String,
        to: String,
        line_number: usize,
    },
}Variants§
Record(Record)
OrType(OrType)
OrTypeWithVariant
Variable(Variable)
Component(ComponentDefinition)
WebComponent(WebComponentDefinition)
Function(Function)
Export
what is this?
Implementations§
Source§impl Definition
 
impl Definition
pub fn name(&self) -> String
pub fn line_number(&self) -> usize
pub fn component(self) -> Option<ComponentDefinition>
Trait Implementations§
Source§impl Clone for Definition
 
impl Clone for Definition
Source§fn clone(&self) -> Definition
 
fn clone(&self) -> Definition
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 Debug for Definition
 
impl Debug for Definition
Source§impl<'de> Deserialize<'de> for Definition
 
impl<'de> Deserialize<'de> for Definition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Definition
 
impl PartialEq for Definition
Source§impl Serialize for Definition
 
impl Serialize for Definition
impl StructuralPartialEq for Definition
Auto Trait Implementations§
impl Freeze for Definition
impl RefUnwindSafe for Definition
impl Send for Definition
impl Sync for Definition
impl Unpin for Definition
impl UnwindSafe for Definition
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