pub struct YamlCorrectness { /* private fields */ }Implementations§
Source§impl YamlCorrectness
impl YamlCorrectness
pub fn check_flag(&self, flag: &str) -> bool
pub fn check_cats<'a>(&self, categories: impl Iterator<Item = &'a str>) -> bool
pub fn check_pnts(&self, points: u64) -> bool
pub fn verify<'a>( &self, shape: &'a YamlShape, ) -> Result<&'a YamlShape, YamlCorrectness>
Source§impl YamlCorrectness
impl YamlCorrectness
pub fn with_flag(self, flag: FlagCorrectness) -> Self
pub fn with_cats(self, categories: CategoryCorrectness) -> Self
pub fn with_pnts(self, points: PointCorrectness) -> Self
Source§impl YamlCorrectness
impl YamlCorrectness
pub fn show_issue(&self, f: &mut Formatter<'_>) -> Result
Trait Implementations§
Source§impl Clone for YamlCorrectness
impl Clone for YamlCorrectness
Source§fn clone(&self) -> YamlCorrectness
fn clone(&self) -> YamlCorrectness
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 YamlCorrectness
impl Debug for YamlCorrectness
Source§impl Default for YamlCorrectness
impl Default for YamlCorrectness
Source§impl Display for YamlCorrectness
impl Display for YamlCorrectness
Source§impl PartialEq for YamlCorrectness
impl PartialEq for YamlCorrectness
impl StructuralPartialEq for YamlCorrectness
Auto Trait Implementations§
impl Freeze for YamlCorrectness
impl !RefUnwindSafe for YamlCorrectness
impl Send for YamlCorrectness
impl Sync for YamlCorrectness
impl Unpin for YamlCorrectness
impl !UnwindSafe for YamlCorrectness
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