pub trait ValidationContext {
// Required methods
fn add_error(&mut self, code: String, message: String);
fn is_valid(&self) -> bool;
fn get_errors(&self) -> &[BrddError];
}Expand description
A subset of the context that allows adding errors and checking validity.
Required Methods§
fn add_error(&mut self, code: String, message: String)
fn is_valid(&self) -> bool
fn get_errors(&self) -> &[BrddError]
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".