[−][src]Struct fasteval::parser::Parser
Fields
expr_len_limit: usize
expr_depth_limit: usize
Methods
impl Parser
[src]
pub const fn new() -> Self
[src]
pub fn parse(
&self,
expr_str: &str,
slab: &mut ParseSlab
) -> Result<ExpressionI, Error>
[src]
&self,
expr_str: &str,
slab: &mut ParseSlab
) -> Result<ExpressionI, Error>
Use this function to parse an expression String. The Slab
will be cleared first.
pub fn parse_noclear(
&self,
expr_str: &str,
slab: &mut ParseSlab
) -> Result<ExpressionI, Error>
[src]
&self,
expr_str: &str,
slab: &mut ParseSlab
) -> Result<ExpressionI, Error>
This is exactly the same as parse()
but the Slab
will NOT be cleared.
This is useful in performance-critical sections, when you know that you
already have an empty Slab
.
This function cannot return Result<&Expression> because it would prolong the mut ref. / That's why we return an ExpressionI instead.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Parser
impl Send for Parser
impl Sync for Parser
impl Unpin for Parser
impl UnwindSafe for Parser
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,