Type Alias WeakMap

Source
pub type WeakMap = TypedWeakMap<Any, Any>;

Aliased Type§

pub struct WeakMap { /* private fields */ }

Trait Implementations§

Source§

impl DynCast for WeakMap

Source§

fn instanceof(val: &Val) -> bool

Implementation of val instanceof ThisType.
Source§

fn unchecked_from_val(v: Val) -> Self

Zero-cost unchecked conversion from Val into Self.
Source§

fn unchecked_from_val_ref(v: &Val) -> &Self

Zero-cost unchecked conversion from &Val into &Self.
Source§

fn has_type<T>(&self) -> bool
where T: DynCast,

Source§

fn dyn_into<T>(self) -> Result<T, Self>
where T: DynCast,

Source§

fn dyn_ref<T>(&self) -> Option<&T>
where T: DynCast,

Source§

fn unchecked_into<T>(self) -> T
where T: DynCast,

Source§

fn unchecked_ref<T>(&self) -> &T
where T: DynCast,

Source§

fn is_instance_of<T>(&self) -> bool
where T: DynCast,

Source§

fn is_type_of(val: &Val) -> bool

Customisable brand check – defaults to instanceof.