pub trait Visible {
fn position(&self) -> Position;
fn position_mut(&mut self) -> &mut Position;
fn is_connector(&self) -> bool;
fn transpose(&mut self);
fn resize(&mut self);
}
Expand description
This is the trait that all elements that can be arranged need to implement.
Required Methods
sourcefn position_mut(&mut self) -> &mut Position
fn position_mut(&mut self) -> &mut Position
\return the mutable reference to the Position of the shape.
sourcefn is_connector(&self) -> bool
fn is_connector(&self) -> bool
Return true if the element is a connector.