Struct TaskGraph

Source
pub struct TaskGraph<T, I = u32, S = RandomState> { /* private fields */ }

Implementations§

Source§

impl<T> TaskGraph<T>

Source

pub fn new() -> Self

Source§

impl<T, I, S> TaskGraph<T, I, S>

Source

pub fn add_task( &mut self, deps: &[Index<I>], task: T, ) -> Result<Index<I>, Error<T>>

Source

pub fn execute(self) -> (Sender<T, I, S>, Execute<T, I, S>)

Trait Implementations§

Source§

impl<T, I, S> Default for TaskGraph<T, I, S>
where I: Default + Hash + PartialEq + Eq, S: Default + BuildHasher + Unpin,

Source§

fn default() -> TaskGraph<T, I, S>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<T, I, S> Freeze for TaskGraph<T, I, S>
where I: Freeze, S: Freeze,

§

impl<T, I, S> RefUnwindSafe for TaskGraph<T, I, S>

§

impl<T, I, S> Send for TaskGraph<T, I, S>
where I: Send, S: Send, T: Send,

§

impl<T, I, S> Sync for TaskGraph<T, I, S>
where I: Sync, S: Sync, T: Sync,

§

impl<T, I, S> Unpin for TaskGraph<T, I, S>
where I: Unpin, S: Unpin, T: Unpin,

§

impl<T, I, S> UnwindSafe for TaskGraph<T, I, S>
where S: UnwindSafe, I: UnwindSafe, T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.