Struct net_ensembles::sw_graph::SwEdge [−][src]
pub struct SwEdge { /* fields omitted */ }
Expand description
Implementations
Is the edge a root edge?
- A root edge is an edge which will allways be connected to the current node. Where it connects to can change, where it connects from cannot.
- In the original ring structure of an
SwGraph
created by theSwEnsemble
every edge is rooted at a node and every node has the same amount (2) of root edges
Is the edge at its root position?
A root edge is an edge which will allways be connected to the current node. Where it connects to can change, where it connects from cannot.
A root edge can be reset (i.e., where it connects to is reset) to its original neighbor (the next, or second next neighbor)
This checks, if the edge still connects to where it would be reset to anyway
checks root edge it it is long ranging
- is it a root edge and if yes, is it a long ranging root edge?
- a long ranging root edge is defined as follows.
every edge can be in either of two states: root edge or not (see
is_root
). If the edge is not at its original position, it is counted as long ranging. We can only make statements about root edges, because we are missing information otherwise. Therefore this method will returntrue
if the edge is a root edge, which is not at its original position
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for SwEdge
impl UnwindSafe for SwEdge
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn cast_trunc(self) -> T
pub fn cast_trunc(self) -> T
Cast to integer, truncating Read more
pub fn cast_nearest(self) -> T
pub fn cast_nearest(self) -> T
Cast to the nearest integer Read more
pub fn cast_floor(self) -> T
pub fn cast_floor(self) -> T
Cast the floor to an integer Read more
pub fn try_cast_trunc(self) -> Result<T, Error>
pub fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
pub fn try_cast_nearest(self) -> Result<T, Error>
pub fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
pub fn try_cast_floor(self) -> Result<T, Error>
pub fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
pub fn try_cast_ceil(self) -> Result<T, Error>
pub fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more