pub struct Anchor<T: Drawable + KnownSize> {
pub inner: T,
pub direction: AnchorDirection,
}
Expand description
An anchor instance
Fields
inner: T
The inner object to be anchored
direction: AnchorDirection
The direction to anchor to
Implementations
Trait Implementations
sourceimpl<T: Drawable + KnownSize> Drawable for Anchor<T>
impl<T: Drawable + KnownSize> Drawable for Anchor<T>
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>, pos: &Position, settings: DrawSettings)
fn draw(&self, canvas: &mut Canvas<Window>, pos: &Position, settings: DrawSettings)
Draw everything
Auto Trait Implementations
impl<T> RefUnwindSafe for Anchor<T>where
T: RefUnwindSafe,
impl<T> Send for Anchor<T>
impl<T> Sync for Anchor<T>where
T: Sync,
impl<T> Unpin for Anchor<T>where
T: Unpin,
impl<T> UnwindSafe for Anchor<T>where
T: UnwindSafe,
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