pub struct ThemeValidator { /* private fields */ }Expand description
Validator for theme properties and style class dependencies
Implementations§
Source§impl ThemeValidator
impl ThemeValidator
pub fn new() -> Self
Sourcepub fn add_style_class(
&mut self,
name: &str,
extends: Vec<String>,
file: &str,
line: u32,
col: u32,
)
pub fn add_style_class( &mut self, name: &str, extends: Vec<String>, file: &str, line: u32, col: u32, )
Add a style class for validation
Sourcepub fn add_invalid_theme_property(
&mut self,
theme_name: &str,
property: &str,
value: &str,
file: &str,
line: u32,
col: u32,
) -> Result<(), String>
pub fn add_invalid_theme_property( &mut self, theme_name: &str, property: &str, value: &str, file: &str, line: u32, col: u32, ) -> Result<(), String>
Add an invalid theme property error
Sourcepub fn validate(&self) -> Vec<CheckError>
pub fn validate(&self) -> Vec<CheckError>
Validate all themes and style classes
Trait Implementations§
Source§impl Debug for ThemeValidator
impl Debug for ThemeValidator
Source§impl Default for ThemeValidator
impl Default for ThemeValidator
Source§fn default() -> ThemeValidator
fn default() -> ThemeValidator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ThemeValidator
impl RefUnwindSafe for ThemeValidator
impl Send for ThemeValidator
impl Sync for ThemeValidator
impl Unpin for ThemeValidator
impl UnwindSafe for ThemeValidator
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