pub enum TopLevel {
SumType(SumTypeDecl),
RecordType(RecordDecl),
Entry(Entry),
}
Expand description
All of the structures
Variants§
Implementations§
Source§impl TopLevel
impl TopLevel
pub fn get_constructors(&self) -> Option<Cow<'_, Vec<Constructor>>>
pub fn get_indices(&self) -> Option<Cow<'_, Telescope<Argument>>>
pub fn is_record(&self) -> bool
pub fn is_sum_type(&self) -> bool
pub fn is_definition(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TopLevel
impl RefUnwindSafe for TopLevel
impl Send for TopLevel
impl Sync for TopLevel
impl Unpin for TopLevel
impl UnwindSafe for TopLevel
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