[−][src]Struct paragraphs::graph::Graph
Methods
impl<Node: 'static, Data: 'static> Graph<Node, Data> where
Node: ThreadExecute<Data>,
Data: Send + Sync,
[src]
Node: ThreadExecute<Data>,
Data: Send + Sync,
pub fn new(num_threads: usize) -> Graph<Node, Data>
[src]
pub fn len(&self) -> usize
[src]
pub fn get(&self, index: usize) -> Option<&Node>
[src]
pub fn get_mut(&mut self, index: usize) -> Option<&mut Node>
[src]
pub fn add<Container, Elem>(&mut self, node: Node, inputs: Container) -> usize where
Container: IntoIterator<Item = Elem>,
Elem: Borrow<usize>,
[src]
Container: IntoIterator<Item = Elem>,
Elem: Borrow<usize>,
pub fn compile<Container, Elem>(&self, fetches: Container) -> Recipe where
Container: IntoIterator<Item = Elem>,
Elem: Borrow<usize>,
[src]
Container: IntoIterator<Item = Elem>,
Elem: Borrow<usize>,
pub fn run(
&mut self,
recipe: &Recipe,
inputs_map: HashMap<usize, Vec<Data>>
) -> HashMap<usize, Data>
[src]
&mut self,
recipe: &Recipe,
inputs_map: HashMap<usize, Vec<Data>>
) -> HashMap<usize, Data>
Trait Implementations
impl<Node, Data> IntoIterator for Graph<Node, Data> where
Node: ThreadExecute<Data>,
Data: Send + Sync,
[src]
Node: ThreadExecute<Data>,
Data: Send + Sync,
type Item = Node
The type of the elements being iterated over.
type IntoIter = Map<IntoIter<Option<Node>>, fn(_: Option<Node>) -> Node>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a, Node, Data> IntoIterator for &'a Graph<Node, Data> where
Node: ThreadExecute<Data>,
Data: Send + Sync,
[src]
Node: ThreadExecute<Data>,
Data: Send + Sync,
type Item = &'a Node
The type of the elements being iterated over.
type IntoIter = Map<Iter<'a, Option<Node>>, fn(_: &Option<Node>) -> &Node>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a, Node, Data> IntoIterator for &'a mut Graph<Node, Data> where
Node: ThreadExecute<Data>,
Data: Send + Sync,
[src]
Node: ThreadExecute<Data>,
Data: Send + Sync,
type Item = &'a mut Node
The type of the elements being iterated over.
type IntoIter = Map<IterMut<'a, Option<Node>>, fn(_: &mut Option<Node>) -> &mut Node>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<Node: Debug, Data: Debug> Debug for Graph<Node, Data> where
Node: ThreadExecute<Data>,
Data: Send + Sync,
[src]
Node: ThreadExecute<Data>,
Data: Send + Sync,
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,