pub struct Edges { /* private fields */ }Expand description
Four-sided edge dimensions for margin, padding, and safe-area insets.
Implementations§
Source§impl Edges
Convenience constructors and sums for Edges.
impl Edges
Convenience constructors and sums for Edges.
Source§impl Edges
impl Edges
pub fn get_top(&self) -> f32
pub fn get_mut_top(&mut self) -> &mut f32
pub fn set_top(&mut self, val: f32) -> &mut Self
pub fn get_right(&self) -> f32
pub fn get_mut_right(&mut self) -> &mut f32
pub fn set_right(&mut self, val: f32) -> &mut Self
pub fn get_bottom(&self) -> f32
pub fn get_mut_bottom(&mut self) -> &mut f32
pub fn set_bottom(&mut self, val: f32) -> &mut Self
pub fn get_left(&self) -> f32
pub fn get_mut_left(&mut self) -> &mut f32
pub fn set_left(&mut self, val: f32) -> &mut Self
Trait Implementations§
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