Struct Boolean
#[repr(transparent)]
pub struct Boolean { /* private fields */ }
Implementations
impl Boolean
fn new(value: &JsValue) -> BooleanThe
Boolean()constructor creates an object wrapper for a boolean value.
impl Boolean
fn value_of(&self) -> boolThe
valueOf()method returns the primitive value of aBooleanobject.
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) -> boolfn is_type_of(val: &JsValue) -> boolfn unchecked_from_js(val: JsValue) -> Selffn 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) -> boolfn le(&self, other: &Self) -> boolfn ge(&self, other: &Self) -> boolfn 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()