pub struct StaticStore<const N: usize> { /* private fields */ }Expand description
Storage backed by a fixed-size array.
Implementations§
Trait Implementations§
Source§impl<const N: usize> Default for StaticStore<N>
impl<const N: usize> Default for StaticStore<N>
Source§impl<const N: usize> TaskStore for StaticStore<N>
impl<const N: usize> TaskStore for StaticStore<N>
Source§fn add_task(&mut self, task: Task, deps: &[usize]) -> Result<usize>
fn add_task(&mut self, task: Task, deps: &[usize]) -> Result<usize>
Add a task to the storage.
Source§fn get_successors(&self, id: usize) -> u64
fn get_successors(&self, id: usize) -> u64
Get tasks that depend on this one (outgoing edges).
Source§fn update_status(&mut self, id: usize, status: TaskStatus) -> Result<()>
fn update_status(&mut self, id: usize, status: TaskStatus) -> Result<()>
Update the status of a task.
Source§fn task_count(&self) -> usize
fn task_count(&self) -> usize
Get the total number of tasks.
Auto Trait Implementations§
impl<const N: usize> !Freeze for StaticStore<N>
impl<const N: usize> RefUnwindSafe for StaticStore<N>
impl<const N: usize> Send for StaticStore<N>
impl<const N: usize> Sync for StaticStore<N>
impl<const N: usize> Unpin for StaticStore<N>
impl<const N: usize> UnsafeUnpin for StaticStore<N>
impl<const N: usize> UnwindSafe for StaticStore<N>
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