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
Source§fn clone(&self) -> PlaceholderShape
fn clone(&self) -> PlaceholderShape
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more