pub struct Edges {
pub left: f32,
pub top: f32,
pub right: f32,
pub bottom: f32,
}Expand description
A rectangle by its four edges, in points. Animating by edges keeps an edge that does not move still, where animating by position and size would wobble it.
Fields§
§left: f32Left edge (min x).
top: f32Top edge (min y).
right: f32Right edge (max x).
bottom: f32Bottom edge (max y).
Implementations§
Trait Implementations§
Source§impl Animatable for Edges
impl Animatable for Edges
impl Copy for Edges
impl StructuralPartialEq for Edges
Auto Trait Implementations§
impl Forget for Edges
impl Freeze for Edges
impl Move for Edges
impl RefUnwindSafe for Edges
impl Send for Edges
impl Sync for Edges
impl Unpin for Edges
impl UnsafeUnpin for Edges
impl UnwindSafe for Edges
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more