pub struct Program {
pub declarations: Vec<Declaration>,
pub declaration_trivia: Vec<DeclarationTrivia>,
pub loc: Loc,
}Fields§
§declarations: Vec<Declaration>§declaration_trivia: Vec<DeclarationTrivia>v1.5.2 — comment trivia attached per declaration (parallel
with declarations). Empty by default; populated by the parser
when source carries comments. Defaults preserve every existing
Program { declarations, loc } constructor — ..Default::default()
on a Program literal fills in the new field.
loc: LocTrait Implementations§
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