pub enum SkipTabs {
Yes,
No,
}Expand description
Behavior to adopt regarding treating tabs as whitespace.
Although tab is valid YAML whitespace, it does not always behave the same as a space. Whitespace results cannot be used as input policies:
ⓘ
use granit_parser::{input::WhitespaceResult, BufferedInput, Input};
let mut input = BufferedInput::new(" \tvalue".chars());
let previous_result = WhitespaceResult::new(true, true);
input.skip_ws_to_eol(previous_result); // Expected SkipTabs, not WhitespaceResult.Variants§
Yes
Skip all tabs as whitespace.
No
Don’t skip any tab. Return from the function when encountering one.
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 UnsafeUnpin 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