pub struct Program {
pub in_decls: Vec<InDecl>,
pub out_decls: Vec<OutDecl>,
pub wires: Vec<Wire>,
pub destructuring_wires: Vec<DestructuringWire>,
pub msg_decls: Vec<MsgDecl>,
pub out_assignments: Vec<OutAssignment>,
pub direct_connections: Vec<DirectConnection>,
pub feedback_decls: Vec<FeedbackDecl>,
pub feedback_assignments: Vec<FeedbackAssignment>,
pub state_decls: Vec<StateDecl>,
pub state_assignments: Vec<StateAssignment>,
}Expand description
flutmax AST (Abstract Syntax Tree)
Type definitions representing the structure of .flutmax source code.
Converted from Tree-sitter CST to this AST, then passed to semantic analysis.
Top-level program structure
Fields§
§in_decls: Vec<InDecl>§out_decls: Vec<OutDecl>§wires: Vec<Wire>§destructuring_wires: Vec<DestructuringWire>§msg_decls: Vec<MsgDecl>§out_assignments: Vec<OutAssignment>§direct_connections: Vec<DirectConnection>§feedback_decls: Vec<FeedbackDecl>§feedback_assignments: Vec<FeedbackAssignment>§state_decls: Vec<StateDecl>§state_assignments: Vec<StateAssignment>Implementations§
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