pub struct WasmObbyArchive { /* private fields */ }
Expand description
A wrapper struct for the WebAssembly environment to interact with .obby
files
This struct provides a WASM-compatible interface for working with .obby
archives.
Implementations§
Source§impl WasmObbyArchive
impl WasmObbyArchive
Sourcepub fn list_entries(&self) -> Box<[JsValue]>
pub fn list_entries(&self) -> Box<[JsValue]>
Lists all entries in the .obby
archive
§Returns
A JavaScript array of strings representing the names of all entries.
Sourcepub fn extract_entry(&mut self, entry_name: &str) -> Result<Uint8Array, JsValue>
pub fn extract_entry(&mut self, entry_name: &str) -> Result<Uint8Array, JsValue>
Trait Implementations§
Source§impl From<WasmObbyArchive> for JsValue
impl From<WasmObbyArchive> for JsValue
Source§fn from(value: WasmObbyArchive) -> Self
fn from(value: WasmObbyArchive) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WasmObbyArchive
impl FromWasmAbi for WasmObbyArchive
Source§impl IntoWasmAbi for WasmObbyArchive
impl IntoWasmAbi for WasmObbyArchive
Source§impl LongRefFromWasmAbi for WasmObbyArchive
impl LongRefFromWasmAbi for WasmObbyArchive
Source§impl OptionFromWasmAbi for WasmObbyArchive
impl OptionFromWasmAbi for WasmObbyArchive
Source§impl OptionIntoWasmAbi for WasmObbyArchive
impl OptionIntoWasmAbi for WasmObbyArchive
Source§impl RefFromWasmAbi for WasmObbyArchive
impl RefFromWasmAbi for WasmObbyArchive
Source§type Anchor = RcRef<WasmObbyArchive>
type Anchor = RcRef<WasmObbyArchive>
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 WasmObbyArchive
impl RefMutFromWasmAbi for WasmObbyArchive
Source§impl TryFromJsValue for WasmObbyArchive
impl TryFromJsValue for WasmObbyArchive
Source§impl VectorFromWasmAbi for WasmObbyArchive
impl VectorFromWasmAbi for WasmObbyArchive
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WasmObbyArchive]>
Source§impl VectorIntoJsValue for WasmObbyArchive
impl VectorIntoJsValue for WasmObbyArchive
fn vector_into_jsvalue(vector: Box<[WasmObbyArchive]>) -> JsValue
Source§impl VectorIntoWasmAbi for WasmObbyArchive
impl VectorIntoWasmAbi for WasmObbyArchive
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WasmObbyArchive]>) -> Self::Abi
Source§impl WasmDescribeVector for WasmObbyArchive
impl WasmDescribeVector for WasmObbyArchive
impl SupportsConstructor for WasmObbyArchive
impl SupportsInstanceProperty for WasmObbyArchive
impl SupportsStaticProperty for WasmObbyArchive
Auto Trait Implementations§
impl Freeze for WasmObbyArchive
impl RefUnwindSafe for WasmObbyArchive
impl Send for WasmObbyArchive
impl Sync for WasmObbyArchive
impl Unpin for WasmObbyArchive
impl UnwindSafe for WasmObbyArchive
Blanket Implementations§
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
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::Abi
Source§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
.