Trait Reader
Source pub trait Reader<B> {
Show 33 methods
// Required methods
fn eof(&self) -> bool;
fn col(&self) -> u32;
fn line(&self) -> u32;
fn offset(&self) -> usize;
fn peek_chars(&self) -> &[u8] ⓘ;
fn peek_two_chars(&self) -> &[u8] ⓘ;
fn peek_byte_at(&self, offset: usize) -> Option<u8>;
fn skip_space_tab(&mut self) -> usize;
fn skip_space_and_tab_detect(&mut self, has_tab: &mut bool) -> usize;
fn consume_bytes(&mut self, amount: usize) -> usize;
fn try_read_slice_exact(&mut self, needle: &str) -> bool;
fn get_read_line(&self) -> (usize, usize, usize);
fn read_line(&mut self) -> (usize, usize);
fn count_spaces(&self) -> u32;
fn count_whitespace_from(&self, offset: usize) -> usize;
fn count_spaces_till(&self, indent: u32) -> usize;
fn is_empty_newline(&self) -> bool;
fn get_double_quote(&self) -> Option<usize>;
fn get_double_quote_trim(&self, start_str: usize) -> Option<(usize, usize)>;
fn get_single_quote(&self) -> Option<usize>;
fn get_single_quote_trim(&self, start_str: usize) -> Option<(usize, usize)>;
fn count_space_then_tab(&mut self) -> (u32, u32);
fn consume_anchor_alias(&mut self) -> (usize, usize);
fn read_tag(&mut self) -> (Option<ErrorType>, usize, usize, usize);
fn read_tag_handle(&mut self) -> Result<Vec<u8>, ErrorType>;
fn read_tag_uri(&mut self) -> Option<(usize, usize)>;
fn read_break(&mut self) -> Option<(usize, usize)>;
fn read_plain_one_line(
&mut self,
offset_start: Option<usize>,
had_comment: &mut bool,
in_flow_collection: bool,
) -> (usize, usize, usize);
// Provided methods
fn peek_byte(&self) -> Option<u8> { ... }
fn peek_byte_is(&self, needle: u8) -> bool { ... }
fn peek_byte_is_off(&self, needle: u8, offset: usize) -> bool { ... }
fn peek_stream_ending(&self) -> bool { ... }
fn count_whitespace(&self) -> usize { ... }
}