pub struct Conversion { /* private fields */ }Expand description
One case and its parsed module, retained until the worker releases it.
Implementations§
Source§impl Conversion
impl Conversion
pub fn new(name: String) -> Self
Sourcepub fn add_file(&mut self, name: String, bytes: &[u8]) -> String
pub fn add_file(&mut self, name: String, bytes: &[u8]) -> String
Return a structured error for invalid or duplicate project paths.
pub fn inspect( &mut self, primary: Option<String>, format: Option<String>, ) -> String
Sourcepub fn emit(&mut self, format: &str, name: String) -> String
pub fn emit(&mut self, format: &str, name: String) -> String
Emit one target and retain its artifacts for transfer to JavaScript.
pub fn artifact_count(&self) -> usize
pub fn artifact_name(&self, index: usize) -> Option<String>
pub fn take_artifact(&mut self, index: usize) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl From<Conversion> for JsValue
impl From<Conversion> for JsValue
Source§fn from(value: Conversion) -> Self
fn from(value: Conversion) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for Conversion
impl FromWasmAbi for Conversion
Source§impl IntoWasmAbi for Conversion
impl IntoWasmAbi for Conversion
Source§impl LongRefFromWasmAbi for Conversion
impl LongRefFromWasmAbi for Conversion
Source§type Abi = WasmPtr<WasmRefCell<Conversion>>
type Abi = WasmPtr<WasmRefCell<Conversion>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<Conversion>
type Anchor = RcRef<Conversion>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for Conversion
impl OptionFromWasmAbi for Conversion
Source§impl OptionIntoWasmAbi for Conversion
impl OptionIntoWasmAbi for Conversion
Source§impl RefFromWasmAbi for Conversion
impl RefFromWasmAbi for Conversion
Source§type Abi = WasmPtr<WasmRefCell<Conversion>>
type Abi = WasmPtr<WasmRefCell<Conversion>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<Conversion>
type Anchor = RcRef<Conversion>
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§impl RefMutFromWasmAbi for Conversion
impl RefMutFromWasmAbi for Conversion
Source§type Abi = WasmPtr<WasmRefCell<Conversion>>
type Abi = WasmPtr<WasmRefCell<Conversion>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<Conversion>
type Anchor = RcRefMut<Conversion>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiimpl SupportsConstructor for Conversion
impl SupportsInstanceProperty for Conversion
impl SupportsStaticProperty for Conversion
Source§impl TryFromJsValue for Conversion
impl TryFromJsValue for Conversion
Source§impl VectorFromWasmAbi for Conversion
impl VectorFromWasmAbi for Conversion
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Conversion]>
Source§impl VectorIntoWasmAbi for Conversion
impl VectorIntoWasmAbi for Conversion
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Conversion]>) -> Self::Abi
Source§impl WasmDescribeVector for Conversion
impl WasmDescribeVector for Conversion
Auto Trait Implementations§
impl Freeze for Conversion
impl RefUnwindSafe for Conversion
impl Send for Conversion
impl Sync for Conversion
impl Unpin for Conversion
impl UnsafeUnpin for Conversion
impl UnwindSafe for Conversion
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T, U> Imply<T> for U
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
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.