pub struct TaskVars<T> {
pub inputs: Vec<T>,
pub outputs: Vec<T>,
pub params: Vec<T>,
}
Expand description
Utility representing a task’s inputs, outputs, and params. We’ll use this with several different types throughout the process.
Fields§
§inputs: Vec<T>
§outputs: Vec<T>
§params: Vec<T>
Implementations§
Source§impl<T> TaskVars<T>
impl<T> TaskVars<T>
Sourcepub fn new_with_sizes<U>(other: &TaskVars<U>) -> Self
pub fn new_with_sizes<U>(other: &TaskVars<U>) -> Self
Create a new TaskVars
, potentially with a different type,
with the same sizes as other
.
Sourcepub fn with_default_capacity(cap: usize) -> Self
pub fn with_default_capacity(cap: usize) -> Self
Create a new TaskVars
where all three collections have the given capacity.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TaskVars<T>
impl<T> RefUnwindSafe for TaskVars<T>where
T: RefUnwindSafe,
impl<T> Send for TaskVars<T>where
T: Send,
impl<T> Sync for TaskVars<T>where
T: Sync,
impl<T> Unpin for TaskVars<T>where
T: Unpin,
impl<T> UnwindSafe for TaskVars<T>where
T: UnwindSafe,
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