Enum swc::config::util::BoolOrObject [−][src]
pub enum BoolOrObject<T> {
Bool(bool),
Obj(T),
}
Expand description
Note: {}
(empty object) is treated as true
.
Variants
Bool(bool)
Tuple Fields of Bool
0: bool
Implementations
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for BoolOrObject<T> where
T: RefUnwindSafe,
impl<T> Send for BoolOrObject<T> where
T: Send,
impl<T> Sync for BoolOrObject<T> where
T: Sync,
impl<T> Unpin for BoolOrObject<T> where
T: Unpin,
impl<T> UnwindSafe for BoolOrObject<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self