Struct net_ensembles::example_nodes::CountingNode
source · [−]pub struct CountingNode {
pub index: usize,
}
Expand description
Example node that contains a usize
which will, if not changed,
correspond to the index of the Vertex
Fields
index: usize
Contained data
Implementations
sourceimpl CountingNode
impl CountingNode
Trait Implementations
sourceimpl Clone for CountingNode
impl Clone for CountingNode
sourcefn clone(&self) -> CountingNode
fn clone(&self) -> CountingNode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CountingNode
impl Debug for CountingNode
sourceimpl<'de> Deserialize<'de> for CountingNode
impl<'de> Deserialize<'de> for CountingNode
sourcefn 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
sourceimpl Node for CountingNode
impl Node for CountingNode
sourcefn new_from_index(index: usize) -> Self
fn new_from_index(index: usize) -> Self
how to construct a blank object
sourceimpl Serialize for CountingNode
impl Serialize for CountingNode
Auto Trait Implementations
impl RefUnwindSafe for CountingNode
impl Send for CountingNode
impl Sync for CountingNode
impl Unpin for CountingNode
impl UnwindSafe for CountingNode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
fn try_cast_trunc(self) -> Result<T, Error>
fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
fn try_cast_nearest(self) -> Result<T, Error>
fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
fn try_cast_floor(self) -> Result<T, Error>
fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
fn try_cast_ceil(self) -> Result<T, Error>
fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more