Struct wai_bindgen_gen_js::Js

source ·
pub struct Js { /* private fields */ }

Implementations§

source§

impl Js

source

pub fn new() -> Js

Trait Implementations§

source§

impl Default for Js

source§

fn default() -> Js

Returns the “default value” for a type. Read more
source§

impl Generator for Js

source§

fn preprocess_one(&mut self, iface: &Interface, dir: Direction)

source§

fn type_record( &mut self, iface: &Interface, _id: TypeId, name: &str, record: &Record, docs: &Docs )

source§

fn type_tuple( &mut self, iface: &Interface, _id: TypeId, name: &str, tuple: &Tuple, docs: &Docs )

source§

fn type_flags( &mut self, _iface: &Interface, _id: TypeId, name: &str, flags: &Flags, docs: &Docs )

source§

fn type_variant( &mut self, iface: &Interface, _id: TypeId, name: &str, variant: &Variant, docs: &Docs )

source§

fn type_union( &mut self, iface: &Interface, _id: TypeId, name: &str, union: &Union, docs: &Docs )

source§

fn type_option( &mut self, iface: &Interface, _id: TypeId, name: &str, payload: &Type, docs: &Docs )

source§

fn type_expected( &mut self, iface: &Interface, _id: TypeId, name: &str, expected: &Expected, docs: &Docs )

source§

fn type_enum( &mut self, _iface: &Interface, _id: TypeId, name: &str, enum_: &Enum, docs: &Docs )

source§

fn type_resource(&mut self, _iface: &Interface, ty: ResourceId)

source§

fn type_alias( &mut self, iface: &Interface, _id: TypeId, name: &str, ty: &Type, docs: &Docs )

source§

fn type_list( &mut self, iface: &Interface, _id: TypeId, name: &str, ty: &Type, docs: &Docs )

source§

fn type_builtin( &mut self, iface: &Interface, _id: TypeId, name: &str, ty: &Type, docs: &Docs )

source§

fn export(&mut self, iface: &Interface, func: &Function)

source§

fn import(&mut self, iface: &Interface, func: &Function)

source§

fn finish_one(&mut self, iface: &Interface, files: &mut Files)

source§

fn finish_all(&mut self, files: &mut Files)

source§

fn preprocess_all(&mut self, imports: &[Interface], exports: &[Interface])

source§

fn preprocess_functions(&mut self, iface: &Interface, dir: Direction)

source§

fn finish_functions(&mut self, iface: &Interface, dir: Direction)

source§

fn generate_one(&mut self, iface: &Interface, dir: Direction, files: &mut Files)

source§

fn generate_all( &mut self, imports: &[Interface], exports: &[Interface], files: &mut Files )

Auto Trait Implementations§

§

impl RefUnwindSafe for Js

§

impl Send for Js

§

impl Sync for Js

§

impl Unpin for Js

§

impl UnwindSafe for Js

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.