[][src]Struct quilt_wasm::Changes

pub struct Changes { /* fields omitted */ }

Methods

impl Changes[src]

pub fn new(nodes: &JsValue, edges: &JsValue) -> Changes[src]

Creates a new changeset from a list of nodes to be deleted and edges to be added.

nodes should be an array of strings (the ids of the nodes to be deleted) and edges should be an array of pairs of strings (the sources and destinations of the edges to be added).

Trait Implementations

impl From<Changes> for JsValue[src]

impl FromWasmAbi for Changes[src]

type Abi = u32

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for Changes[src]

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl WasmDescribe for Changes[src]

impl RefFromWasmAbi for Changes[src]

type Abi = u32

The wasm ABI type references to Self are recovered from.

type Anchor = Ref<'static, Changes>

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. Read more

impl RefMutFromWasmAbi for Changes[src]

type Abi = u32

Same as RefFromWasmAbi::Abi

type Anchor = RefMut<'static, Changes>

Same as RefFromWasmAbi::Anchor

impl<'de> Deserialize<'de> for Changes[src]

Auto Trait Implementations

impl Send for Changes

impl Sync for Changes

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same for T

type Output = T

Should always be Self