pub struct GraphNode<T> { /* private fields */ }Implementations§
Source§impl<T> GraphNode<T>
impl<T> GraphNode<T>
pub fn new(index: usize, node_type: NodeType, value: T) -> Self
pub fn with_arity( index: usize, node_type: NodeType, value: T, arity: Arity, ) -> Self
pub fn direction(&self) -> Direction
pub fn set_direction(&mut self, direction: Direction)
pub fn is_enabled(&self) -> bool
pub fn enable(&mut self)
pub fn disable(&mut self)
pub fn index(&self) -> usize
pub fn id(&self) -> &Uuid
pub fn is_recurrent(&self) -> bool
pub fn incoming(&self) -> &BTreeSet<usize>
pub fn outgoing(&self) -> &BTreeSet<usize>
pub fn incoming_mut(&mut self) -> &mut BTreeSet<usize>
pub fn outgoing_mut(&mut self) -> &mut BTreeSet<usize>
pub fn is_locked(&self) -> bool
Trait Implementations§
Source§impl<T> FromIterator<GraphNode<T>> for Graph<T>
impl<T> FromIterator<GraphNode<T>> for Graph<T>
Source§impl<T> FromIterator<GraphNode<T>> for GraphChromosome<T>
impl<T> FromIterator<GraphNode<T>> for GraphChromosome<T>
Source§impl<T> Gene for GraphNode<T>
impl<T> Gene for GraphNode<T>
type Allele = T
Source§fn allele(&self) -> &Self::Allele
fn allele(&self) -> &Self::Allele
Get the
allele of the Gene. This is the value that the Gene represents or “expresses”.Source§fn new_instance(&self) -> GraphNode<T>
fn new_instance(&self) -> GraphNode<T>
Create a new instance of the
Gene.Source§fn with_allele(&self, allele: &Self::Allele) -> GraphNode<T>
fn with_allele(&self, allele: &Self::Allele) -> GraphNode<T>
Create a new
Gene with the given allele.impl<T> StructuralPartialEq for GraphNode<T>
Auto Trait Implementations§
impl<T> Freeze for GraphNode<T>where
T: Freeze,
impl<T> RefUnwindSafe for GraphNode<T>where
T: RefUnwindSafe,
impl<T> Send for GraphNode<T>where
T: Send,
impl<T> Sync for GraphNode<T>where
T: Sync,
impl<T> Unpin for GraphNode<T>where
T: Unpin,
impl<T> UnwindSafe for GraphNode<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