pub struct NativeDeclaration {
pub namespace: &'static str,
pub name: &'static str,
pub methods: &'static [&'static str],
pub whole_wasm_methods: &'static [NativeOperationDeclaration],
pub provider: NativeProvider,
pub availability: NativeAvailability,
pub capability: Option<&'static str>,
}Fields§
§namespace: &'static str§name: &'static str§methods: &'static [&'static str]§whole_wasm_methods: &'static [NativeOperationDeclaration]§provider: NativeProvider§availability: NativeAvailability§capability: Option<&'static str>Implementations§
Source§impl NativeDeclaration
impl NativeDeclaration
pub fn qualified_name(self) -> String
pub fn method(self, name: &str) -> bool
pub fn whole_wasm_method(self, name: &str) -> Option<NativeOperationDeclaration>
Trait Implementations§
Source§impl Clone for NativeDeclaration
impl Clone for NativeDeclaration
Source§fn clone(&self) -> NativeDeclaration
fn clone(&self) -> NativeDeclaration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NativeDeclaration
Auto Trait Implementations§
impl Freeze for NativeDeclaration
impl RefUnwindSafe for NativeDeclaration
impl Send for NativeDeclaration
impl Sync for NativeDeclaration
impl Unpin for NativeDeclaration
impl UnsafeUnpin for NativeDeclaration
impl UnwindSafe for NativeDeclaration
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more