#[non_exhaustive]pub struct InsetShape {
pub inset: Sides<Length>,
pub border_radius: Option<Sides<Length>>,
}Expand description
Represents an inset() rectangle shape.
The inset() function creates an inset rectangle, with its size defined by the offset distance of each of the four sides of its container and, optionally, rounded corners.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.inset: Sides<Length>Sides of the inset.
border_radius: Option<Sides<Length>>Optional border radius for rounded corners
Trait Implementations§
Source§impl Clone for InsetShape
impl Clone for InsetShape
Source§fn clone(&self) -> InsetShape
fn clone(&self) -> InsetShape
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 moreSource§impl Debug for InsetShape
impl Debug for InsetShape
Source§impl PartialEq for InsetShape
impl PartialEq for InsetShape
Source§fn eq(&self, other: &InsetShape) -> bool
fn eq(&self, other: &InsetShape) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InsetShape
Auto Trait Implementations§
impl Freeze for InsetShape
impl RefUnwindSafe for InsetShape
impl Send for InsetShape
impl Sync for InsetShape
impl Unpin for InsetShape
impl UnsafeUnpin for InsetShape
impl UnwindSafe for InsetShape
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