pub enum LayerShape {
Rectangle,
Rounded(RoundedCornerShape),
}Expand description
The outline of a graphics layer, used for clipping and for its shadow.
Variants§
Trait Implementations§
Source§impl Clone for LayerShape
impl Clone for LayerShape
Source§fn clone(&self) -> LayerShape
fn clone(&self) -> LayerShape
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 LayerShape
Source§impl Debug for LayerShape
impl Debug for LayerShape
Source§impl Default for LayerShape
impl Default for LayerShape
Source§fn default() -> LayerShape
fn default() -> LayerShape
Returns the “default value” for a type. Read more
Source§impl PartialEq for LayerShape
impl PartialEq for LayerShape
Source§impl RenderHash for LayerShape
impl RenderHash for LayerShape
Source§fn render_hash(&self) -> u64
fn render_hash(&self) -> u64
Returns a hash over exactly the values that change what is drawn. Equal values give equal
hashes.
impl StructuralPartialEq for LayerShape
Auto Trait Implementations§
impl Freeze for LayerShape
impl RefUnwindSafe for LayerShape
impl Send for LayerShape
impl Sync for LayerShape
impl Unpin for LayerShape
impl UnsafeUnpin for LayerShape
impl UnwindSafe for LayerShape
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