pub enum DebugWarningKind {
OutsideViewport,
SlotOutsideParent,
LayoutExceedsAssignedSlot,
ChildOutsideParentClip,
FlexMeasuredLargerThanSlot,
DuplicateKey,
MissingLayout,
}Expand description
Stable warning categories emitted by compute_warnings.
§Examples
use ailloli_ui_devtools_core::DebugWarningKind;
assert_eq!(serde_json::to_string(&DebugWarningKind::DuplicateKey).unwrap(), "\"duplicate_key\"");Variants§
OutsideViewport
Node bounds exceed the snapshot viewport by more than 0.5 logical pixels.
SlotOutsideParent
Parent-assigned slot exceeds parent bounds by more than the tolerance.
LayoutExceedsAssignedSlot
Measured size differs from assigned slot by more than the tolerance.
ChildOutsideParentClip
Child slot exceeds its parent’s clip bounding rectangle.
FlexMeasuredLargerThanSlot
A fill/growing item measured larger than its final slot.
DuplicateKey
A nonempty retained key occurs more than once in the snapshot.
MissingLayout
Retained node has no current layout result.
Trait Implementations§
Source§impl Clone for DebugWarningKind
impl Clone for DebugWarningKind
Source§fn clone(&self) -> DebugWarningKind
fn clone(&self) -> DebugWarningKind
Returns a copy of the value. Read more
1.0.0 · 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 DebugWarningKind
impl Debug for DebugWarningKind
Source§impl<'de> Deserialize<'de> for DebugWarningKind
impl<'de> Deserialize<'de> for DebugWarningKind
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
Source§impl PartialEq for DebugWarningKind
impl PartialEq for DebugWarningKind
Source§impl Serialize for DebugWarningKind
impl Serialize for DebugWarningKind
impl Copy for DebugWarningKind
impl Eq for DebugWarningKind
impl StructuralPartialEq for DebugWarningKind
Auto Trait Implementations§
impl Freeze for DebugWarningKind
impl RefUnwindSafe for DebugWarningKind
impl Send for DebugWarningKind
impl Sync for DebugWarningKind
impl Unpin for DebugWarningKind
impl UnwindSafe for DebugWarningKind
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.