pub enum SkipTabs {
Yes,
No,
Result(bool, bool),
}
Expand description
Behavior to adopt regarding treating tabs as whitespace.
Although tab is a valid yaml whitespace, it doesn’t always behave the same as a space.
Variants§
Yes
Skip all tabs as whitespace.
No
Don’t skip any tab. Return from the function when encountering one.
Result(bool, bool)
Return value from the function.
Implementations§
Source§impl SkipTabs
impl SkipTabs
Sourcepub fn found_tabs(self) -> bool
pub fn found_tabs(self) -> bool
Whether tabs were found while skipping whitespace.
This function must be called after a call to skip_ws_to_eol
.
Sourcepub fn has_valid_yaml_ws(self) -> bool
pub fn has_valid_yaml_ws(self) -> bool
Whether a valid YAML whitespace has been found in skipped-over content.
This function must be called after a call to skip_ws_to_eol
.
Trait Implementations§
impl Copy for SkipTabs
impl Eq for SkipTabs
impl StructuralPartialEq for SkipTabs
Auto Trait Implementations§
impl Freeze for SkipTabs
impl RefUnwindSafe for SkipTabs
impl Send for SkipTabs
impl Sync for SkipTabs
impl Unpin for SkipTabs
impl UnwindSafe for SkipTabs
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