Struct mcai_graph::NodeConfiguration
source · [−]pub struct NodeConfiguration { /* private fields */ }Implementations
sourceimpl NodeConfiguration
impl NodeConfiguration
pub fn new(width: usize, height: usize, x_gap: usize, y_gap: usize) -> Self
pub fn width(&self) -> usize
pub fn height(&self) -> usize
pub fn x_gap(&self) -> usize
pub fn y_gap(&self) -> usize
pub fn get_dimensions(&self) -> Dimensions
pub fn get_coordinates(&self, row: isize, column: isize) -> Coordinates
Trait Implementations
sourceimpl Clone for NodeConfiguration
impl Clone for NodeConfiguration
sourcefn clone(&self) -> NodeConfiguration
fn clone(&self) -> NodeConfiguration
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 more
sourceimpl Debug for NodeConfiguration
impl Debug for NodeConfiguration
sourceimpl PartialEq<NodeConfiguration> for NodeConfiguration
impl PartialEq<NodeConfiguration> for NodeConfiguration
sourcefn eq(&self, other: &NodeConfiguration) -> bool
fn eq(&self, other: &NodeConfiguration) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl StructuralPartialEq for NodeConfiguration
Auto Trait Implementations
impl RefUnwindSafe for NodeConfiguration
impl Send for NodeConfiguration
impl Sync for NodeConfiguration
impl Unpin for NodeConfiguration
impl UnwindSafe for NodeConfiguration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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