#[repr(C)]pub struct NSEdgeInsets {
pub top: CGFloat,
pub left: CGFloat,
pub bottom: CGFloat,
pub right: CGFloat,
}Expand description
A description of the distance between the edges of two rectangles.
Fields§
§top: CGFloatThe distance from the top of the source rectangle to the top of the result rectangle.
left: CGFloatThe distance from the left side of the source rectangle to the left side of the result rectangle.
bottom: CGFloatThe distance from the bottom of the source rectangle to the bottom of the result rectangle.
right: CGFloatThe distance from the right side of the source rectangle to the right side of the result rectangle.
Trait Implementations§
Source§impl Clone for NSEdgeInsets
impl Clone for NSEdgeInsets
Source§fn clone(&self) -> NSEdgeInsets
fn clone(&self) -> NSEdgeInsets
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NSEdgeInsets
Source§impl Debug for NSEdgeInsets
impl Debug for NSEdgeInsets
Source§impl Default for NSEdgeInsets
impl Default for NSEdgeInsets
Source§fn default() -> NSEdgeInsets
fn default() -> NSEdgeInsets
Returns the “default value” for a type. Read more
Source§impl PartialEq for NSEdgeInsets
impl PartialEq for NSEdgeInsets
impl StructuralPartialEq for NSEdgeInsets
Auto Trait Implementations§
impl Freeze for NSEdgeInsets
impl RefUnwindSafe for NSEdgeInsets
impl Send for NSEdgeInsets
impl Sync for NSEdgeInsets
impl Unpin for NSEdgeInsets
impl UnsafeUnpin for NSEdgeInsets
impl UnwindSafe for NSEdgeInsets
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