pub trait Visible {
// Required methods
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.