pub struct StyleConflict<'a> {
pub styles: Vec<&'a str>,
pub conflict_type: ConflictType,
pub description: String,
pub severity: ValidationSeverity,
}Available on crate feature
analysis only.Expand description
Style conflict detection and classification
Fields§
§styles: Vec<&'a str>Names of conflicting styles
conflict_type: ConflictTypeType of conflict detected
description: StringDetailed conflict description
severity: ValidationSeveritySeverity of the conflict
Implementations§
Source§impl<'a> StyleConflict<'a>
impl<'a> StyleConflict<'a>
Sourcepub fn new(
conflict_type: ConflictType,
styles: Vec<&'a str>,
description: &str,
severity: ValidationSeverity,
) -> Self
pub fn new( conflict_type: ConflictType, styles: Vec<&'a str>, description: &str, severity: ValidationSeverity, ) -> Self
Create new style conflict
Sourcepub fn duplicate_name(style_names: Vec<&'a str>) -> Self
pub fn duplicate_name(style_names: Vec<&'a str>) -> Self
Create duplicate name conflict
Sourcepub fn circular_inheritance(cycle_styles: Vec<&'a str>) -> Self
pub fn circular_inheritance(cycle_styles: Vec<&'a str>) -> Self
Create circular inheritance conflict
Sourcepub fn missing_reference(
referencing_style: &'a str,
missing_style: &'a str,
) -> Self
pub fn missing_reference( referencing_style: &'a str, missing_style: &'a str, ) -> Self
Create missing reference conflict
Sourcepub fn missing_parent(style_name: &'a str, parent_name: &'a str) -> Self
pub fn missing_parent(style_name: &'a str, parent_name: &'a str) -> Self
Create missing parent conflict
Trait Implementations§
Source§impl<'a> Clone for StyleConflict<'a>
impl<'a> Clone for StyleConflict<'a>
Source§fn clone(&self) -> StyleConflict<'a>
fn clone(&self) -> StyleConflict<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for StyleConflict<'a>
impl<'a> RefUnwindSafe for StyleConflict<'a>
impl<'a> Send for StyleConflict<'a>
impl<'a> Sync for StyleConflict<'a>
impl<'a> Unpin for StyleConflict<'a>
impl<'a> UnwindSafe for StyleConflict<'a>
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