pub struct FunArgs {
pub values: ArgsRef,
pub needed: usize,
}Expand description
Represents function argument types with optional parameter support.
This type allows defining functions that have both required and optional parameters.
The needed field specifies how many arguments are required, while values contains
all possible argument types (both required and optional).
Fields§
§values: ArgsRefAll argument types, including both required and optional parameters
needed: usizeNumber of required arguments (must be <= values.len())
Trait Implementations§
impl Copy for FunArgs
impl Eq for FunArgs
impl StructuralPartialEq for FunArgs
Auto Trait Implementations§
impl Freeze for FunArgs
impl RefUnwindSafe for FunArgs
impl Send for FunArgs
impl Sync for FunArgs
impl Unpin for FunArgs
impl UnwindSafe for FunArgs
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