[−][src]Struct fasteval::parser::ExpressionI
An ExpressionI
represents an index into Slab.ps.exprs
.
It behaves much like a pointer or reference, but it is 'safe' (unlike a raw pointer) and is not managed by the Rust borrow checker (unlike a reference).
Methods
impl ExpressionI
[src]
pub fn from(self, ps: &ParseSlab) -> &Expression
[src]
Gets an Expression reference from the ParseSlab.
This is actually just a convenience function built on top of
ParseSlab.get_expr
, but it enables you to perform the entire
parse/compile/eval process in one line without upsetting the Rust
borrow checker. (If you didn't have this function, the borrow checker
would force you to split the process into at least two lines.)
Trait Implementations
impl Clone for ExpressionI
[src]
fn clone(&self) -> ExpressionI
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ExpressionI
[src]
impl Debug for ExpressionI
[src]
impl PartialEq<ExpressionI> for ExpressionI
[src]
fn eq(&self, other: &ExpressionI) -> bool
[src]
fn ne(&self, other: &ExpressionI) -> bool
[src]
impl StructuralPartialEq for ExpressionI
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExpressionI
impl Send for ExpressionI
impl Sync for ExpressionI
impl Unpin for ExpressionI
impl UnwindSafe for ExpressionI
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,