Struct webrender_api::BorderRadius
source · #[repr(C)]pub struct BorderRadius {
pub top_left: LayoutSize,
pub top_right: LayoutSize,
pub bottom_left: LayoutSize,
pub bottom_right: LayoutSize,
}
Fields§
§top_left: LayoutSize
§top_right: LayoutSize
§bottom_left: LayoutSize
§bottom_right: LayoutSize
Implementations§
source§impl BorderRadius
impl BorderRadius
pub fn zero() -> BorderRadius
pub fn uniform(radius: f32) -> BorderRadius
pub fn uniform_size(radius: LayoutSize) -> BorderRadius
pub fn is_uniform(&self) -> Option<f32>
pub fn is_uniform_size(&self) -> Option<LayoutSize>
Trait Implementations§
source§impl Clone for BorderRadius
impl Clone for BorderRadius
source§fn clone(&self) -> BorderRadius
fn clone(&self) -> BorderRadius
Returns a copy of the value. Read more
1.0.0 · 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 BorderRadius
impl Debug for BorderRadius
source§impl Default for BorderRadius
impl Default for BorderRadius
source§impl<'de> Deserialize<'de> for BorderRadius
impl<'de> Deserialize<'de> for BorderRadius
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl MallocSizeOf for BorderRadius
impl MallocSizeOf for BorderRadius
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl PartialEq for BorderRadius
impl PartialEq for BorderRadius
source§fn eq(&self, other: &BorderRadius) -> bool
fn eq(&self, other: &BorderRadius) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Peek for BorderRadius
impl Peek for BorderRadius
source§impl Poke for BorderRadius
impl Poke for BorderRadius
source§impl Serialize for BorderRadius
impl Serialize for BorderRadius
impl Copy for BorderRadius
impl StructuralPartialEq for BorderRadius
Auto Trait Implementations§
impl Freeze for BorderRadius
impl RefUnwindSafe for BorderRadius
impl Send for BorderRadius
impl Sync for BorderRadius
impl Unpin for BorderRadius
impl UnwindSafe for BorderRadius
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