Enum swc_ecma_utils::Purity[][src]

pub enum Purity {
    MayBeImpure,
    Pure,
}

Variants

MayBeImpure

May have some side effects.

Pure

Does not have any side effect.

Implementations

impl Purity[src]

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

Returns true if it’s pure.

Trait Implementations

impl Add<Purity> for Purity[src]

type Output = Self

The resulting type after applying the + operator.

impl Clone for Purity[src]

impl Copy for Purity[src]

impl Debug for Purity[src]

impl Eq for Purity[src]

impl Hash for Purity[src]

impl Ord for Purity[src]

impl PartialEq<Purity> for Purity[src]

impl PartialOrd<Purity> for Purity[src]

impl StructuralEq for Purity[src]

impl StructuralPartialEq for Purity[src]

Auto Trait Implementations

impl RefUnwindSafe for Purity

impl Send for Purity

impl Sync for Purity

impl Unpin for Purity

impl UnwindSafe for Purity

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> Node for T where
    T: Any + ?Sized
[src]

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

impl<T> Sync for T where
    T: ?Sized
[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.