Enum chronlang_parser::ast::Stmt
source · pub enum Stmt {
SoundChange {
source: Spanned<Source>,
target: Spanned<Target>,
environment: Option<Spanned<Environment>>,
description: Option<Spanned<String>>,
},
Import {
path: Vec<Spanned<String>>,
absolute: bool,
names: Vec<Spanned<String>>,
},
Language {
id: Spanned<String>,
parent: Option<Spanned<String>>,
name: Option<Spanned<String>>,
},
Word {
gloss: Spanned<String>,
pronunciation: Spanned<Vec<String>>,
definitions: Vec<Definition>,
},
Class {
label: Spanned<String>,
class: Class,
},
Trait {
label: Spanned<String>,
members: Vec<TraitMember>,
},
Milestone {
time: Option<Spanned<Time>>,
language: Option<Spanned<String>>,
},
}Variants§
SoundChange
Fields
§
environment: Option<Spanned<Environment>>Import
Language
Word
Class
Trait
Milestone
Trait Implementations§
source§impl PartialEq<Stmt> for Stmt
impl PartialEq<Stmt> for Stmt
impl StructuralPartialEq for Stmt
Auto Trait Implementations§
impl RefUnwindSafe for Stmt
impl Send for Stmt
impl Sync for Stmt
impl Unpin for Stmt
impl UnwindSafe for Stmt
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