pub struct GraphCodec<T> { /* private fields */ }Implementations§
Source§impl<T: Clone + Default> GraphCodec<T>
impl<T: Clone + Default> GraphCodec<T>
pub fn new( template: impl IntoIterator<Item = GraphNode<T>>, store: impl Into<NodeStore<T>>, ) -> Self
pub fn directed( input_size: usize, output_size: usize, store: impl Into<NodeStore<T>>, ) -> Self
pub fn recurrent( input_size: usize, output_size: usize, store: impl Into<NodeStore<T>>, ) -> Self
pub fn weighted_directed( input_size: usize, output_size: usize, store: impl Into<NodeStore<T>>, ) -> Self
pub fn weighted_recurrent( input_size: usize, output_size: usize, store: impl Into<NodeStore<T>>, ) -> Self
pub fn lstm( input_size: usize, output_size: usize, store: impl Into<NodeStore<T>>, ) -> Self
pub fn gru( input_size: usize, output_size: usize, store: impl Into<NodeStore<T>>, ) -> Self
pub fn mesh( input_size: usize, output_size: usize, rows: usize, cols: usize, store: impl Into<NodeStore<T>>, ) -> Self
pub fn with_max_nodes(self, max_nodes: usize) -> Self
Trait Implementations§
Source§impl<T: Clone> Clone for GraphCodec<T>
impl<T: Clone> Clone for GraphCodec<T>
Source§fn clone(&self) -> GraphCodec<T>
fn clone(&self) -> GraphCodec<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Codec<GraphChromosome<T>, Graph<T>> for GraphCodec<T>
impl<T> Codec<GraphChromosome<T>, Graph<T>> for GraphCodec<T>
Auto Trait Implementations§
impl<T> Freeze for GraphCodec<T>
impl<T> RefUnwindSafe for GraphCodec<T>
impl<T> Send for GraphCodec<T>
impl<T> Sync for GraphCodec<T>
impl<T> Unpin for GraphCodec<T>
impl<T> UnsafeUnpin for GraphCodec<T>
impl<T> UnwindSafe for GraphCodec<T>
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