Struct DebugLayers
pub struct DebugLayers(/* private fields */);Expand description
Bitflags for enabled debug operations.
Currently, all layers additionally require the debug_layers feature.
Implementations§
§impl DebugLayers
impl DebugLayers
pub const BOUNDING_BOXES: DebugLayers
pub const BOUNDING_BOXES: DebugLayers
Visualize the bounding box of every path.
Requires the debug_layers feature.
pub const LINESOUP_SEGMENTS: DebugLayers
pub const LINESOUP_SEGMENTS: DebugLayers
Visualize the post-flattening line segments using line primitives.
Requires the debug_layers feature.
pub const LINESOUP_POINTS: DebugLayers
pub const LINESOUP_POINTS: DebugLayers
Visualize the post-flattening line endpoints.
Requires the debug_layers feature.
pub const VALIDATION: DebugLayers
pub const VALIDATION: DebugLayers
Enable validation of internal buffer contents and visualize errors. Validation tests are run on the CPU and require buffer contents to be read-back.
Supported validation tests:
- Watertightness: validate that every line segment within a path is connected without any gaps. Line endpoints that don’t precisely overlap another endpoint get visualized as red circles and logged to stderr.
Requires the debug_layers feature.
pub const fn from_bits(bits: u8) -> DebugLayers
pub const fn from_bits(bits: u8) -> DebugLayers
Construct a DebugLayers from the raw bits.
pub const fn none() -> DebugLayers
pub const fn none() -> DebugLayers
A DebugLayers with no layers enabled.
pub const fn all() -> DebugLayers
pub const fn all() -> DebugLayers
A DebugLayers with all layers enabled.
pub const fn contains(self, mask: DebugLayers) -> bool
pub const fn contains(self, mask: DebugLayers) -> bool
Determine whether self is a superset of mask.
pub fn toggle(&mut self, mask: DebugLayers)
pub fn toggle(&mut self, mask: DebugLayers)
Toggle the value of the layers specified in mask.
Trait Implementations§
§impl BitOr for DebugLayers
Returns the union of the two input DebugLayers.
impl BitOr for DebugLayers
Returns the union of the two input DebugLayers.
§type Output = DebugLayers
type Output = DebugLayers
| operator.§fn bitor(self, rhs: DebugLayers) -> DebugLayers
fn bitor(self, rhs: DebugLayers) -> DebugLayers
| operation. Read more§impl Clone for DebugLayers
impl Clone for DebugLayers
§fn clone(&self) -> DebugLayers
fn clone(&self) -> DebugLayers
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for DebugLayers
impl Debug for DebugLayers
impl Copy for DebugLayers
Auto Trait Implementations§
impl Freeze for DebugLayers
impl RefUnwindSafe for DebugLayers
impl Send for DebugLayers
impl Sync for DebugLayers
impl Unpin for DebugLayers
impl UnsafeUnpin for DebugLayers
impl UnwindSafe for DebugLayers
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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