Enum rhai::OptimizationLevel[][src]

pub enum OptimizationLevel {
    None,
    Simple,
    Full,
}

Level of optimization performed.

Variants

None

No optimization performed.

Simple

Only perform simple optimizations without evaluating functions.

Full

Full optimizations performed, including evaluating functions. Take care that this may cause side effects as it essentially assumes that all functions are pure.

Implementations

impl OptimizationLevel[src]

pub fn is_none(self) -> bool[src]

Is the OptimizationLevel None?

pub fn is_simple(self) -> bool[src]

Is the OptimizationLevel Simple?

pub fn is_full(self) -> bool[src]

Is the OptimizationLevel Full?

Trait Implementations

impl Clone for OptimizationLevel[src]

impl Copy for OptimizationLevel[src]

impl Debug for OptimizationLevel[src]

impl Eq for OptimizationLevel[src]

impl Hash for OptimizationLevel[src]

impl PartialEq<OptimizationLevel> for OptimizationLevel[src]

impl StructuralEq for OptimizationLevel[src]

impl StructuralPartialEq for OptimizationLevel[src]

Auto Trait Implementations

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> CallHasher for T where
    T: Hash + ?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.