pub type WeakMap = TypedWeakMap<Any, Any>;Aliased Type§
pub struct WeakMap { /* private fields */ }Trait Implementations§
Source§impl DynCast for WeakMap
impl DynCast for WeakMap
Source§fn instanceof(val: &Val) -> bool
fn instanceof(val: &Val) -> bool
Implementation of
val instanceof ThisType.Source§fn unchecked_from_val(v: Val) -> Self
fn unchecked_from_val(v: Val) -> Self
Zero-cost unchecked conversion from
Val into Self.Source§fn unchecked_from_val_ref(v: &Val) -> &Self
fn unchecked_from_val_ref(v: &Val) -> &Self
Zero-cost unchecked conversion from
&Val into &Self.fn has_type<T>(&self) -> boolwhere
T: DynCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: DynCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: DynCast,
fn unchecked_into<T>(self) -> Twhere
T: DynCast,
fn unchecked_ref<T>(&self) -> &Twhere
T: DynCast,
fn is_instance_of<T>(&self) -> boolwhere
T: DynCast,
Source§fn is_type_of(val: &Val) -> bool
fn is_type_of(val: &Val) -> bool
Customisable brand check – defaults to
instanceof.