makepad_wasm_bridge

Struct WasmDataU8

Source
pub struct WasmDataU8(/* private fields */);

Implementations§

Source§

impl WasmDataU8

Source

pub fn new_and_release_ownership(capacity: usize) -> u32

Source

pub fn take_ownership(ptr: u32, len: u32, cap: u32) -> Self

Source

pub fn from_vec_u8(v: Vec<u8>) -> Self

Source

pub fn into_vec_u8(self) -> Vec<u8>

Trait Implementations§

Source§

impl FromWasm for WasmDataU8

Source§

fn from_wasm_js_body( out: &mut WasmJSOutput, slot: usize, _is_recur: bool, prop: &str, _temp: usize, )

Source§

fn from_wasm_inner(self, out: &mut FromWasmMsg)

Source§

fn type_name() -> &'static str

Source§

fn live_id() -> LiveId

Source§

fn write_from_wasm(self, out: &mut FromWasmMsg)
where Self: Sized,

Source§

fn from_wasm_js_reuse(wrapper: &mut String)

Source§

fn to_js_code() -> String

Source§

fn from_wasm_js_inner(wrapper: &mut String, reuse_arg: bool)

Source§

impl ToWasm for WasmDataU8

Source§

fn read_to_wasm(inp: &mut ToWasmMsgRef<'_>) -> Self

Source§

fn to_wasm_js_body( out: &mut WasmJSOutput, slot: usize, _is_recur: bool, prop: &str, _temp: usize, )

Source§

fn u32_size() -> usize

Source§

fn type_name() -> &'static str

Source§

fn live_id() -> LiveId

Source§

fn to_js_code() -> String

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, 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.