pub struct Aml3Parser {
pub bytes: Box<[u8]>,
pub pointer: usize,
pub start_line: usize,
pub line: usize,
pub column: usize,
}Fields§
§bytes: Box<[u8]>§pointer: usize§start_line: usize§line: usize§column: usizeImplementations§
Source§impl Aml3Parser
impl Aml3Parser
pub fn new(bytes: Box<[u8]>) -> Self
pub fn new_line(&mut self)
pub fn go_back(&mut self, amount: usize)
pub fn go_forward(&mut self, amount: usize)
pub fn peek(&self, amount: usize) -> Option<char>
pub fn peek_while<P>(&self, pat: P, oneline: bool) -> Option<String>
pub fn peek_until(&self, pat: char) -> Option<String>
pub fn peek_until_oneline(&self, pat: char) -> Option<String>
pub fn consume_while<P>(&mut self, pat: P, oneline: bool) -> Option<String>
pub fn consume_until(&mut self, pat: char) -> Option<String>
pub fn consume_until_oneline(&mut self, pat: char) -> Option<String>
pub fn consume(&mut self) -> Option<char>
pub fn consume_oneline(&mut self) -> Option<char>
pub fn consume_static(&mut self, pat: char) -> bool
pub fn error(&self, description: impl Display) -> Aml3Error
pub fn error_expected( &self, expected: impl Display, found: Option<String>, ) -> Aml3Error
Trait Implementations§
Source§impl Clone for Aml3Parser
impl Clone for Aml3Parser
Source§fn clone(&self) -> Aml3Parser
fn clone(&self) -> Aml3Parser
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Freeze for Aml3Parser
impl RefUnwindSafe for Aml3Parser
impl Send for Aml3Parser
impl Sync for Aml3Parser
impl Unpin for Aml3Parser
impl UnsafeUnpin for Aml3Parser
impl UnwindSafe for Aml3Parser
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