[][src]Struct fasteval::parser::ValueI

pub struct ValueI(pub usize);

A ValueI represents an index into Slab.ps.vals.

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 ValueI[src]

pub fn from(self, ps: &ParseSlab) -> &Value[src]

Gets a Value reference from the ParseSlab.

See the comments on ExpressionI::from.

Trait Implementations

impl Clone for ValueI[src]

impl Copy for ValueI[src]

impl Debug for ValueI[src]

impl PartialEq<ValueI> for ValueI[src]

impl StructuralPartialEq for ValueI[src]

Auto Trait Implementations

impl RefUnwindSafe for ValueI

impl Send for ValueI

impl Sync for ValueI

impl Unpin for ValueI

impl UnwindSafe for ValueI

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.