pub enum ClipResult {
AllInside,
AllOutside,
Partial,
}Expand description
Result of a rectangular or span clip test. Matches SplashClipResult.
Variants§
AllInside
The entire tested region lies within the clip boundary.
AllOutside
The entire tested region lies outside the clip boundary.
Partial
The tested region straddles the clip boundary; per-pixel testing is required.
Trait Implementations§
Source§impl Clone for ClipResult
impl Clone for ClipResult
Source§fn clone(&self) -> ClipResult
fn clone(&self) -> ClipResult
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 moreSource§impl Debug for ClipResult
impl Debug for ClipResult
Source§impl PartialEq for ClipResult
impl PartialEq for ClipResult
Source§fn eq(&self, other: &ClipResult) -> bool
fn eq(&self, other: &ClipResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ClipResult
impl Eq for ClipResult
impl StructuralPartialEq for ClipResult
Auto Trait Implementations§
impl Freeze for ClipResult
impl RefUnwindSafe for ClipResult
impl Send for ClipResult
impl Sync for ClipResult
impl Unpin for ClipResult
impl UnsafeUnpin for ClipResult
impl UnwindSafe for ClipResult
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