#[repr(C)]pub struct ShapeInset {
pub inset_top: f32,
pub inset_right: f32,
pub inset_bottom: f32,
pub inset_left: f32,
pub border_radius: OptionF32,
}Expand description
An inset rectangle with optional border radius Defined by insets from the reference box edges
Fields§
§inset_top: f32§inset_right: f32§inset_bottom: f32§inset_left: f32§border_radius: OptionF32Trait Implementations§
Source§impl Clone for ShapeInset
impl Clone for ShapeInset
Source§fn clone(&self) -> ShapeInset
fn clone(&self) -> ShapeInset
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 moreSource§impl Debug for ShapeInset
impl Debug for ShapeInset
Source§impl Hash for ShapeInset
impl Hash for ShapeInset
Source§impl Ord for ShapeInset
impl Ord for ShapeInset
Source§impl PartialEq for ShapeInset
impl PartialEq for ShapeInset
Source§impl PartialOrd for ShapeInset
impl PartialOrd for ShapeInset
impl Eq for ShapeInset
impl StructuralPartialEq for ShapeInset
Auto Trait Implementations§
impl Freeze for ShapeInset
impl RefUnwindSafe for ShapeInset
impl Send for ShapeInset
impl Sync for ShapeInset
impl Unpin for ShapeInset
impl UnwindSafe for ShapeInset
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