pub struct TaskScope {
pub signals: HashSet<String>,
pub data: HashSet<String>,
pub scales: HashSet<String>,
pub output_var_defs: HashMap<Variable, Variable>,
pub children: Vec<TaskScope>,
}Fields§
§signals: HashSet<String>§data: HashSet<String>§scales: HashSet<String>§output_var_defs: HashMap<Variable, Variable>Tasks that have definition output variables (e.g. task that produces a signal)
children: Vec<TaskScope>Implementations§
Source§impl TaskScope
impl TaskScope
pub fn new() -> Self
pub fn get_child(&self, scope: &[u32]) -> Result<&TaskScope>
pub fn get_child_mut(&mut self, scope: &[u32]) -> Result<&mut TaskScope>
pub fn add_variable(&mut self, variable: &Variable, scope: &[u32]) -> Result<()>
pub fn add_data_signal( &mut self, data: &str, signal: &str, scope: &[u32], ) -> Result<()>
pub fn remove_data_signal( &mut self, signal: &str, scope: &[u32], ) -> Result<Variable>
pub fn resolve_scope( &self, variable: &Variable, usage_scope: &[u32], ) -> Result<Resolved>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskScope
impl RefUnwindSafe for TaskScope
impl Send for TaskScope
impl Sync for TaskScope
impl Unpin for TaskScope
impl UnwindSafe for TaskScope
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more