pub struct Directions2D {
pub top: f32,
pub bottom: f32,
pub left: f32,
pub right: f32,
}Expand description
Represents the four 2D directions
Fields§
§top: f32§bottom: f32§left: f32§right: f32Implementations§
Trait Implementations§
Source§impl Clone for Directions2D
impl Clone for Directions2D
Source§fn clone(&self) -> Directions2D
fn clone(&self) -> Directions2D
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Directions2D
Auto Trait Implementations§
impl Freeze for Directions2D
impl RefUnwindSafe for Directions2D
impl Send for Directions2D
impl Sync for Directions2D
impl Unpin for Directions2D
impl UnwindSafe for Directions2D
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