pub struct FunctionArgumentData {
pub pat_type: PatType,
pub js_name: Option<String>,
pub js_type: Option<String>,
pub optional: bool,
pub desc: Option<String>,
pub slice_to_array: bool,
}Expand description
Information about a function’s argument
Fields§
§pat_type: PatTypeSpecifies the type of the function’s argument
js_name: Option<String>Specifies the JS argument name override
js_type: Option<String>Specifies the JS function argument type override
optional: boolSpecifies whether the parameter is optional
desc: Option<String>Specifies the argument description
slice_to_array: boolWhen set, an &[T] (or Option<&[T]>) argument is converted to a
freshly-allocated buffer the JS side observes as a plain Array
rather than a typed array. Only meaningful for outgoing arguments
(Rust calling JS); ignored on exported functions.
Trait Implementations§
Source§impl Clone for FunctionArgumentData
impl Clone for FunctionArgumentData
Source§fn clone(&self) -> FunctionArgumentData
fn clone(&self) -> FunctionArgumentData
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 moreAuto Trait Implementations§
impl !Send for FunctionArgumentData
impl !Sync for FunctionArgumentData
impl Freeze for FunctionArgumentData
impl RefUnwindSafe for FunctionArgumentData
impl Unpin for FunctionArgumentData
impl UnsafeUnpin for FunctionArgumentData
impl UnwindSafe for FunctionArgumentData
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