pub struct DebugOverlay {
pub page: usize,
pub primitives: Vec<DebugPrimitive>,
}Expand description
Derived overlay, separate from resolved scene elements.
Fields§
§page: usizePage index.
primitives: Vec<DebugPrimitive>Debug-only primitives.
Implementations§
Source§impl DebugOverlay
impl DebugOverlay
Sourcepub fn build(
scene: &ResolvedScene,
page: usize,
options: &DebugOverlayOptions,
) -> Result<Self>
pub fn build( scene: &ResolvedScene, page: usize, options: &DebugOverlayOptions, ) -> Result<Self>
Builds an overlay without modifying scene geometry or paint order.
Sourcepub fn build_bounded(
scene: &ResolvedScene,
page: usize,
options: &DebugOverlayOptions,
limits: &ResourceLimits,
) -> Result<Self>
pub fn build_bounded( scene: &ResolvedScene, page: usize, options: &DebugOverlayOptions, limits: &ResourceLimits, ) -> Result<Self>
Builds an overlay under the caller’s scene and diagnostic budgets.
Trait Implementations§
Source§impl Clone for DebugOverlay
impl Clone for DebugOverlay
Source§fn clone(&self) -> DebugOverlay
fn clone(&self) -> DebugOverlay
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 DebugOverlay
impl Debug for DebugOverlay
Source§impl<'de> Deserialize<'de> for DebugOverlay
impl<'de> Deserialize<'de> for DebugOverlay
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DebugOverlay
Source§impl PartialEq for DebugOverlay
impl PartialEq for DebugOverlay
Source§impl Serialize for DebugOverlay
impl Serialize for DebugOverlay
impl StructuralPartialEq for DebugOverlay
Auto Trait Implementations§
impl Freeze for DebugOverlay
impl RefUnwindSafe for DebugOverlay
impl Send for DebugOverlay
impl Sync for DebugOverlay
impl Unpin for DebugOverlay
impl UnsafeUnpin for DebugOverlay
impl UnwindSafe for DebugOverlay
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.