pub struct Program {
pub span: Span,
pub module: Option<ModuleDecl>,
pub imports: Vec<ImportDecl>,
pub prefixes: Vec<PrefixDecl>,
pub locales: Vec<LocaleDecl>,
pub requires: Vec<CapSpec>,
pub items: Vec<Item>,
}Fields§
§span: Span§module: Option<ModuleDecl>§imports: Vec<ImportDecl>§prefixes: Vec<PrefixDecl>§locales: Vec<LocaleDecl>Opt-in keyword locales (locale zh;). English is always active.
requires: Vec<CapSpec>§items: Vec<Item>Trait Implementations§
impl StructuralPartialEq for Program
Auto Trait Implementations§
impl Freeze for Program
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnsafeUnpin for Program
impl UnwindSafe for Program
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