Struct Boolean

#[repr(transparent)]
pub struct Boolean { /* private fields */ }

Implementations

impl Boolean

fn new(value: &JsValue) -> Boolean

The Boolean() constructor creates an object wrapper for a boolean value.

MDN documentation

impl Boolean

fn value_of(&self) -> bool

The valueOf() method returns the primitive value of a Boolean object.

MDN documentation

impl Boolean

const TRUE: Boolean = _;

Typed Boolean true constant.

const FALSE: Boolean = _;

Typed Boolean false constant.

Trait Implementations

impl AsRef<Boolean> for Boolean

fn as_ref(&self) -> &Boolean

impl AsRef<JsValue> for Boolean

fn as_ref(&self) -> &JsValue

impl AsRef<Object> for Boolean

fn as_ref(&self) -> &Object

impl Clone for Boolean

fn clone(&self) -> Self

impl Debug for Boolean

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for Boolean

fn default() -> Self

impl Deref for Boolean

type Target = Object;
fn deref(&self) -> &Object

impl Display for Boolean

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for Boolean

impl ErasableGeneric for Boolean

type Repr = JsValue;

impl From<JsValue> for Boolean

fn from(obj: JsValue) -> Self

impl From<bool> for Boolean

fn from(b: bool) -> Boolean

impl FromWasmAbi for Boolean

type Abi = <JsValue as FromWasmAbi>::Abi;
unsafe fn from_abi(js: Self::Abi) -> Self

impl IntoJsGeneric for Boolean where Boolean: JsGeneric,

type JsCanon = Boolean;
fn to_js(self) -> Boolean

impl IntoWasmAbi for Boolean

type Abi = <JsValue as IntoWasmAbi>::Abi;
fn into_abi(self) -> Self::Abi

impl JsCast for Boolean

fn instanceof(val: &JsValue) -> bool
fn is_type_of(val: &JsValue) -> bool
fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self

impl LongRefFromWasmAbi for Boolean

type Abi = <JsValue as LongRefFromWasmAbi>::Abi;
type Anchor = Boolean;
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

impl Not for Boolean

type Output = <&'static Boolean as Not>::Output;
fn not(self) -> Self::Output

impl OptionFromWasmAbi for Boolean

fn is_none(abi: &Self::Abi) -> bool

impl OptionIntoWasmAbi for Boolean

fn none() -> Self::Abi

impl Ord for Boolean

fn cmp(&self, other: &Self) -> Ordering

impl PartialEq for Boolean

fn eq(&self, other: &Self) -> bool

impl PartialEq<bool> for Boolean

fn eq(&self, other: &bool) -> bool

impl PartialOrd for Boolean

fn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn lt(&self, other: &Self) -> bool
fn le(&self, other: &Self) -> bool
fn ge(&self, other: &Self) -> bool
fn gt(&self, other: &Self) -> bool

impl Promising for Boolean

type Resolution = Boolean;

impl RefFromWasmAbi for Boolean

type Abi = <JsValue as RefFromWasmAbi>::Abi;
type Anchor = ManuallyDrop<Boolean>;
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

impl StructuralPartialEq for Boolean

impl UpcastFrom<Boolean> for Boolean

impl UpcastFrom<bool> for Boolean

impl WasmDescribe for Boolean

fn describe()

Auto Trait Implementations

impl Freeze for Boolean

impl RefUnwindSafe for Boolean

impl Send for Boolean

impl Sync for Boolean

impl Unpin for Boolean

impl UnsafeUnpin for Boolean

impl UnwindSafe for Boolean

Blanket Implementations

impl<P, T> Receiver for Boolean where P: Deref<Target = T> + ?Sized, T: ?Sized,

impl<S, T> Upcast<T> for Boolean where T: UpcastFrom<S> + ?Sized, S: ?Sized,

impl<T> Any for Boolean where T: 'static + ?Sized,

impl<T> Borrow<T> for Boolean where T: ?Sized,

impl<T> BorrowMut<T> for Boolean where T: ?Sized,

impl<T> CloneToUninit for Boolean where T: Clone,

impl<T> From<T> for Boolean

impl<T> JsGeneric for Boolean where T: ErasableGeneric<Repr = JsValue> + UpcastFrom<T> + Upcast<JsValue> + JsCast + 'static,

impl<T> ReturnWasmAbi for Boolean where T: IntoWasmAbi,

impl<T> ToOwned for Boolean where T: Clone,

impl<T> ToString for Boolean where T: Display + ?Sized,

impl<T> TryFromJsValue for Boolean where T: JsCast,

impl<T> VectorFromWasmAbi for Boolean where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

impl<T> VectorIntoWasmAbi for Boolean where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

impl<T> VectorRefIntoWasmAbi for Boolean where &'a T: for<'a> Into<JsValue>,

impl<T, U> Into<U> for Boolean where U: From<T>,

impl<T, U> TryFrom<U> for Boolean where U: Into<T>,

impl<T, U> TryInto<U> for Boolean where U: TryFrom<T>,