Struct webrender::border::NormalBorderAu
source · pub struct NormalBorderAu {
pub left: BorderSideAu,
pub right: BorderSideAu,
pub top: BorderSideAu,
pub bottom: BorderSideAu,
pub radius: BorderRadiusAu,
pub do_aa: bool,
}
Fields§
§left: BorderSideAu
§right: BorderSideAu
§top: BorderSideAu
§bottom: BorderSideAu
§radius: BorderRadiusAu
§do_aa: bool
Whether to apply anti-aliasing on the border corners.
Note that for this to be false
and work, this requires the borders to
be solid, and no border-radius.
Implementations§
source§impl NormalBorderAu
impl NormalBorderAu
pub fn with_color(&self, color: ColorU) -> Self
Trait Implementations§
source§impl Clone for NormalBorderAu
impl Clone for NormalBorderAu
source§fn clone(&self) -> NormalBorderAu
fn clone(&self) -> NormalBorderAu
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 NormalBorderAu
impl Debug for NormalBorderAu
source§impl From<NormalBorder> for NormalBorderAu
impl From<NormalBorder> for NormalBorderAu
source§fn from(border: ApiNormalBorder) -> Self
fn from(border: ApiNormalBorder) -> Self
Converts to this type from the input type.
source§impl From<NormalBorderAu> for NormalBorder
impl From<NormalBorderAu> for NormalBorder
source§fn from(border: NormalBorderAu) -> Self
fn from(border: NormalBorderAu) -> Self
Converts to this type from the input type.
source§impl Hash for NormalBorderAu
impl Hash for NormalBorderAu
source§impl MallocSizeOf for NormalBorderAu
impl MallocSizeOf for NormalBorderAu
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 NormalBorderAu
impl PartialEq for NormalBorderAu
source§fn eq(&self, other: &NormalBorderAu) -> bool
fn eq(&self, other: &NormalBorderAu) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NormalBorderAu
impl Serialize for NormalBorderAu
impl Eq for NormalBorderAu
impl StructuralPartialEq for NormalBorderAu
Auto Trait Implementations§
impl Freeze for NormalBorderAu
impl RefUnwindSafe for NormalBorderAu
impl Send for NormalBorderAu
impl Sync for NormalBorderAu
impl Unpin for NormalBorderAu
impl UnwindSafe for NormalBorderAu
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> 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