[][src]Enum swc_ecma_transforms::util::Value

pub enum Value<T> {
    Known(T),
    Unknown,
}

Runtime value.

Variants

Known(T)
Unknown

Not determined at compile time.`

Methods

impl Value<Type>[src]

impl<T> Value<T>[src]

pub fn is_unknown(&self) -> bool[src]

Returns true if the value is not known.

pub fn is_known(&self) -> bool[src]

Returns true if the value is known.

impl Value<bool>[src]

pub fn and(self, other: Self) -> Self[src]

pub fn or(self, other: Self) -> Self[src]

Trait Implementations

impl<T: Clone> Clone for Value<T>[src]

impl<T: Copy> Copy for Value<T>[src]

impl<T: Eq> Eq for Value<T>[src]

impl<T: Ord> Ord for Value<T>[src]

impl<T: PartialEq> PartialEq<Value<T>> for Value<T>[src]

impl<T: PartialOrd> PartialOrd<Value<T>> for Value<T>[src]

impl<T: Debug> Debug for Value<T>[src]

impl Not for Value<bool>[src]

type Output = Self

The resulting type after applying the ! operator.

impl<T: Hash> Hash for Value<T>[src]

impl<T> Try for Value<T>[src]

type Ok = T

🔬 This is a nightly-only experimental API. (try_trait)

The type of this value when viewed as successful.

type Error = UnknownError

🔬 This is a nightly-only experimental API. (try_trait)

The type of this value when viewed as failed.

impl<T> StructuralPartialEq for Value<T>[src]

impl<T> StructuralEq for Value<T>[src]

Auto Trait Implementations

impl<T> Send for Value<T> where
    T: Send

impl<T> Sync for Value<T> where
    T: Sync

impl<T> Unpin for Value<T> where
    T: Unpin

impl<T> UnwindSafe for Value<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Value<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<P> Pass for P where
    P: Fold<Module> + ?Sized
[src]

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

impl<T> From<T> for 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.

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

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

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

impl<T, F> Fold<T> for F where
    T: FoldWith<F>, 
[src]

impl<T, F> Visit<T> for F where
    T: VisitWith<F> + ?Sized
[src]

impl<T> Erased for T

impl<T> Erased for T

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]