pub struct Plan {
pub steps: Vec<Planned>,
/* private fields */
}Expand description
The agent runs a pass would make, which is what an approval names.
Fields§
§steps: Vec<Planned>Implementations§
Source§impl Plan
impl Plan
pub fn is_empty(&self) -> bool
pub fn cost(&self) -> f64
Sourcepub fn id(&self) -> String
pub fn id(&self) -> String
A short hash of what the plan runs: each node, its units, its worker and its model, and the basis. Approving by id means a pass runs what was printed and nothing else; a frontier, a target or an argument that changed gives another id. Unit ids alone repeat across instances.
Trait Implementations§
impl StructuralPartialEq for Plan
Auto Trait Implementations§
impl Freeze for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnsafeUnpin for Plan
impl UnwindSafe for Plan
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