pub struct NodeValidation {
pub ok: bool,
pub issues: Vec<ValidationIssue>,
}Expand description
Per-node validation result.
§Why validation is a field on the node and not a separate pass
GUIs render validation inline (“this field has a red underline”). Keeping the validation result stapled to the node the GUI is about to render avoids a second lookup step in every render frame.
Fields§
§ok: boolConvenience flag — true iff issues is empty.
issues: Vec<ValidationIssue>Human-readable issues scoped to this node.
Implementations§
Trait Implementations§
Source§impl Clone for NodeValidation
impl Clone for NodeValidation
Source§fn clone(&self) -> NodeValidation
fn clone(&self) -> NodeValidation
Returns a duplicate 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 NodeValidation
impl Debug for NodeValidation
Source§impl Default for NodeValidation
impl Default for NodeValidation
Source§fn default() -> NodeValidation
fn default() -> NodeValidation
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NodeValidation
impl RefUnwindSafe for NodeValidation
impl Send for NodeValidation
impl Sync for NodeValidation
impl Unpin for NodeValidation
impl UnsafeUnpin for NodeValidation
impl UnwindSafe for NodeValidation
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