Struct Keys

Source
pub struct Keys { /* private fields */ }

Implementationsยง

Sourceยง

impl Keys

Source

pub fn public(&self) -> String

Source

pub fn private(&self) -> String

Trait Implementationsยง

Sourceยง

impl From<Keys> for JsValue

Sourceยง

fn from(value: Keys) -> Self

Converts to this type from the input type.
Sourceยง

impl FromWasmAbi for Keys

Sourceยง

type Abi = u32

The Wasm ABI type that this converts from when coming back out from the ABI boundary.
Sourceยง

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
Sourceยง

impl IntoWasmAbi for Keys

Sourceยง

type Abi = u32

The Wasm ABI type that this converts into when crossing the ABI boundary.
Sourceยง

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm ABI boundary.
Sourceยง

impl LongRefFromWasmAbi for Keys

Sourceยง

type Abi = u32

Same as RefFromWasmAbi::Abi
Sourceยง

type Anchor = RcRef<Keys>

Same as RefFromWasmAbi::Anchor
Sourceยง

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
Sourceยง

impl OptionFromWasmAbi for Keys

Sourceยง

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

Tests whether the argument is a โ€œnoneโ€ instance. If so it will be deserialized as None, and otherwise it will be passed to FromWasmAbi.
Sourceยง

impl OptionIntoWasmAbi for Keys

Sourceยง

fn none() -> Self::Abi

Returns an ABI instance indicating โ€œnoneโ€, which JS will interpret as the None branch of this option. Read more
Sourceยง

impl RefFromWasmAbi for Keys

Sourceยง

type Abi = u32

The Wasm ABI type references to Self are recovered from.
Sourceยง

type Anchor = RcRef<Keys>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes donโ€™t persist beyond one function call, and so that they remain anonymous.
Sourceยง

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
Sourceยง

impl RefMutFromWasmAbi for Keys

Sourceยง

type Abi = u32

Same as RefFromWasmAbi::Abi
Sourceยง

type Anchor = RcRefMut<Keys>

Same as RefFromWasmAbi::Anchor
Sourceยง

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
Sourceยง

impl TryFromJsValue for Keys

Sourceยง

type Error = JsValue

The type returned in the event of a conversion error.
Sourceยง

fn try_from_js_value(value: JsValue) -> Result<Self, Self::Error>

Performs the conversion.
Sourceยง

impl VectorFromWasmAbi for Keys

Sourceยง

impl VectorIntoJsValue for Keys

Sourceยง

impl VectorIntoWasmAbi for Keys

Sourceยง

impl WasmDescribe for Keys

Sourceยง

impl WasmDescribeVector for Keys

Sourceยง

impl SupportsConstructor for Keys

Sourceยง

impl SupportsInstanceProperty for Keys

Sourceยง

impl SupportsStaticProperty for Keys

Auto Trait Implementationsยง

Blanket Implementationsยง

Sourceยง

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

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Sourceยง

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

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

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

Sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

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

Sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sourceยง

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

Sourceยง

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
Sourceยง

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never return in the case of Err.
Sourceยง

impl<T> Same for T

Sourceยง

type Output = T

Should always be Self
Sourceยง

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

Sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Sourceยง

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

Sourceยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Sourceยง

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Sourceยง

fn vzip(self) -> V