pub struct CornerRadius(/* private fields */);Expand description
Corner radius in logical points. Resolves (× the target region’s Scale) to a
physical-pixel radius, clamped so it can never overshoot the surface (the clamp lives in
crate::ResolvedMask::from_target). Non-negative by construction.
Implementations§
Source§impl CornerRadius
impl CornerRadius
Trait Implementations§
Source§impl Clone for CornerRadius
impl Clone for CornerRadius
Source§fn clone(&self) -> CornerRadius
fn clone(&self) -> CornerRadius
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 CornerRadius
Source§impl Debug for CornerRadius
impl Debug for CornerRadius
Source§impl PartialEq for CornerRadius
impl PartialEq for CornerRadius
Source§fn eq(&self, other: &CornerRadius) -> bool
fn eq(&self, other: &CornerRadius) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CornerRadius
Auto Trait Implementations§
impl Freeze for CornerRadius
impl RefUnwindSafe for CornerRadius
impl Send for CornerRadius
impl Sync for CornerRadius
impl Unpin for CornerRadius
impl UnsafeUnpin for CornerRadius
impl UnwindSafe for CornerRadius
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