pub struct DrawRunSummary {
pub has_text: bool,
pub has_shadow: bool,
pub has_non_shadow: bool,
pub has_pixel_sensitive: bool,
}Expand description
One-pass discriminant census of a draw run, recursing through Blend
wrappers the same way the per-primitive predicates it replaces did.
Fields§
§has_text: boolAny Text primitive, including inside Blend — glyph masks want
rigid snapping.
has_shadow: bool§has_non_shadow: boolAny primitive besides Shadow (direct drawable content).
has_pixel_sensitive: boolAny Image or Text, including inside Blend — content that
resamples badly on a fractionally offset surface.
Implementations§
Source§impl DrawRunSummary
impl DrawRunSummary
pub fn scan(primitives: &[DrawPrimitive]) -> Self
Trait Implementations§
Source§impl Clone for DrawRunSummary
impl Clone for DrawRunSummary
Source§fn clone(&self) -> DrawRunSummary
fn clone(&self) -> DrawRunSummary
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 moreimpl Copy for DrawRunSummary
Source§impl Debug for DrawRunSummary
impl Debug for DrawRunSummary
Source§impl Default for DrawRunSummary
impl Default for DrawRunSummary
Source§fn default() -> DrawRunSummary
fn default() -> DrawRunSummary
Returns the “default value” for a type. Read more
impl Eq for DrawRunSummary
Source§impl PartialEq for DrawRunSummary
impl PartialEq for DrawRunSummary
impl StructuralPartialEq for DrawRunSummary
Auto Trait Implementations§
impl Freeze for DrawRunSummary
impl RefUnwindSafe for DrawRunSummary
impl Send for DrawRunSummary
impl Sync for DrawRunSummary
impl Unpin for DrawRunSummary
impl UnsafeUnpin for DrawRunSummary
impl UnwindSafe for DrawRunSummary
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