pub struct Solid {
pub color: Color,
/* private fields */
}
Expand description
A solid, fillid with a color
Fields
color: Color
The color
Implementations
Trait Implementations
sourceimpl Drawable for Solid
impl Drawable for Solid
sourcefn content_mut(&mut self) -> Vec<&mut dyn Drawable>
fn content_mut(&mut self) -> Vec<&mut dyn Drawable>
What this object contains, mutably
sourcefn step(&mut self)
fn step(&mut self)
When the user presses space, the state of the presentation is advanced. This
method is what is called. Read more
sourcefn draw(
&self,
canvas: &mut Canvas<Window>,
position: &Position,
_settings: DrawSettings
)
fn draw(
&self,
canvas: &mut Canvas<Window>,
position: &Position,
_settings: DrawSettings
)
Draw everything
Auto Trait Implementations
impl RefUnwindSafe for Solid
impl Send for Solid
impl Sync for Solid
impl Unpin for Solid
impl UnwindSafe for Solid
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