pub struct Parser<'a> { /* private fields */ }Expand description
Parses a supplied expression and returns a BoxedExpression.
Implementations§
Source§impl<'a> Parser<'a>
impl<'a> Parser<'a>
Sourcepub fn parse(expression: &str) -> Result<Box<dyn Expression>>
pub fn parse(expression: &str) -> Result<Box<dyn Expression>>
parses the provided expression and turning it into a computation that can be applied to some source data.
§Errors
Will return Err the expression is invalid.
Sourcepub fn parse_bytes(expression: &[u8]) -> Result<Box<dyn Expression>>
pub fn parse_bytes(expression: &[u8]) -> Result<Box<dyn Expression>>
parses the provided expression as bytes and turning it into a computation that can be applied to some source data.
§Errors
Will return Err the expression is invalid.
Auto Trait Implementations§
impl<'a> Freeze for Parser<'a>
impl<'a> RefUnwindSafe for Parser<'a>
impl<'a> Send for Parser<'a>
impl<'a> Sync for Parser<'a>
impl<'a> Unpin for Parser<'a>
impl<'a> UnwindSafe for Parser<'a>
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