pub struct Program<Command> {
pub commands: Vec<Command>,
}Expand description
Represents a program that contains one or more namespaces, where each namespace contains a list of commands.
A Program consists of one or more commannd
The program can be executed by iterating over each commands and executing it
Fields§
§commands: Vec<Command>list of namespaces with commands
Trait Implementations§
source§impl<Command: PartialEq> PartialEq for Program<Command>
impl<Command: PartialEq> PartialEq for Program<Command>
impl<Command: Eq> Eq for Program<Command>
impl<Command> StructuralPartialEq for Program<Command>
Auto Trait Implementations§
impl<Command> Freeze for Program<Command>
impl<Command> RefUnwindSafe for Program<Command>where
Command: RefUnwindSafe,
impl<Command> Send for Program<Command>where
Command: Send,
impl<Command> Sync for Program<Command>where
Command: Sync,
impl<Command> Unpin for Program<Command>where
Command: Unpin,
impl<Command> UnwindSafe for Program<Command>where
Command: UnwindSafe,
Blanket Implementations§
source§impl<S> AssignWithType for S
impl<S> AssignWithType for S
source§fn assign_with_type<T, IntoT>(&mut self, component: IntoT)where
IntoT: Into<T>,
S: ComponentAssign<T, IntoT>,
fn assign_with_type<T, IntoT>(&mut self, component: IntoT)where
IntoT: Into<T>,
S: ComponentAssign<T, IntoT>,
Function to set value of a component by its type.
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