pub struct PlaceholderShape {
pub bounds: Rect,
pub corner_radius: f32,
}Expand description
A rounded rectangle within a layer.
Fields§
§bounds: RectThe rectangle, in fractions of the layer’s width and height.
corner_radius: f32The corner radius in the layer’s units, kept within half the
rectangle’s shorter side: f32::MAX makes a capsule.
Trait Implementations§
Source§impl Clone for PlaceholderShape
impl Clone for PlaceholderShape
impl Copy for PlaceholderShape
Source§impl Debug for PlaceholderShape
impl Debug for PlaceholderShape
Source§impl PartialEq for PlaceholderShape
impl PartialEq for PlaceholderShape
impl StructuralPartialEq for PlaceholderShape
Auto Trait Implementations§
impl Freeze for PlaceholderShape
impl RefUnwindSafe for PlaceholderShape
impl Send for PlaceholderShape
impl Sync for PlaceholderShape
impl Unpin for PlaceholderShape
impl UnsafeUnpin for PlaceholderShape
impl UnwindSafe for PlaceholderShape
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