#[non_exhaustive]pub enum InkExtent {
Empty,
Bounds(Rect),
Unknown,
}Expand description
Whether reliable painted bounds are available for a node.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
The node has no painted content of its own.
Bounds(Rect)
Painted content, if any, is enclosed by this rectangle. In particular, a conservative bound intersecting a clip need not contain visible ink. This is not a tight-region result or evidence of a nonempty intersection.
Unknown
The actual painted extent has not been established.
Trait Implementations§
impl Copy for InkExtent
impl StructuralPartialEq for InkExtent
Auto Trait Implementations§
impl Forget for InkExtent
impl Freeze for InkExtent
impl Move for InkExtent
impl RefUnwindSafe for InkExtent
impl Send for InkExtent
impl Sync for InkExtent
impl Unpin for InkExtent
impl UnsafeUnpin for InkExtent
impl UnwindSafe for InkExtent
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.