Enum webrender::clip::ClipNodeKind
source · pub enum ClipNodeKind {
Rectangle,
Complex,
}
Expand description
Helper to identify simple clips (normal rects) from other kinds of clips, which can often be handled via fast code paths.
Variants§
Rectangle
A normal clip rectangle, with Clip mode.
Complex
A rectangle with ClipOut, or any other kind of clip.
Trait Implementations§
source§impl Clone for ClipNodeKind
impl Clone for ClipNodeKind
source§fn clone(&self) -> ClipNodeKind
fn clone(&self) -> ClipNodeKind
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 ClipNodeKind
impl Debug for ClipNodeKind
source§impl MallocSizeOf for ClipNodeKind
impl MallocSizeOf for ClipNodeKind
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 Serialize for ClipNodeKind
impl Serialize for ClipNodeKind
impl Copy for ClipNodeKind
Auto Trait Implementations§
impl Freeze for ClipNodeKind
impl RefUnwindSafe for ClipNodeKind
impl Send for ClipNodeKind
impl Sync for ClipNodeKind
impl Unpin for ClipNodeKind
impl UnwindSafe for ClipNodeKind
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