Struct sp_wasm_interface::Signature [−][src]
The Signature of a function
Fields
args: Cow<'static, [ValueType]>The arguments of a function.
return_value: Option<ValueType>The optional return value of a function.
Implementations
impl Signature[src]
pub fn new<T: Into<Cow<'static, [ValueType]>>>(
args: T,
return_value: Option<ValueType>
) -> Self[src]
args: T,
return_value: Option<ValueType>
) -> Self
Create a new instance of Signature.
pub fn new_with_args<T: Into<Cow<'static, [ValueType]>>>(args: T) -> Self[src]
Create a new instance of Signature with the given args and without any return value.
Trait Implementations
impl Clone for Signature[src]
impl Debug for Signature[src]
impl Eq for Signature[src]
impl From<&'_ Signature> for Signature[src]
impl From<Signature> for Signature[src]
impl PartialEq<Signature> for Signature[src]
impl StructuralEq for Signature[src]
impl StructuralPartialEq for Signature[src]
Auto Trait Implementations
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe, [src]
T: RefUnwindSafe,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,