pub struct FunctionArgument {
pub name: Option<String>,
pub ty: Handle<Type>,
pub binding: Option<Binding>,
}
Expand description
A function argument.
Fields§
§name: Option<String>
Name of the argument, if any.
ty: Handle<Type>
Type of the argument.
binding: Option<Binding>
For entry points, an argument has to have a binding unless it’s a structure.
Trait Implementations§
Source§impl Clone for FunctionArgument
impl Clone for FunctionArgument
Source§fn clone(&self) -> FunctionArgument
fn clone(&self) -> FunctionArgument
Returns a copy of the value. Read more
1.0.0 · 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 Freeze for FunctionArgument
impl RefUnwindSafe for FunctionArgument
impl Send for FunctionArgument
impl Sync for FunctionArgument
impl Unpin for FunctionArgument
impl UnwindSafe for FunctionArgument
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)