pub enum FunctionParameterCount {
Fixed(u16),
Varargs,
}
Expand description
The number of parameters in a bare function.
Bare functions may have fixed or variable numbers of parameters, with up to 65535 arguments supported per call.
Variants
Fixed(u16)
Accept only a specific number of arguments.
Varargs
Accept any amount of arguments.
Implementations
Trait Implementations
sourceimpl Clone for FunctionParameterCount
impl Clone for FunctionParameterCount
sourcefn clone(&self) -> FunctionParameterCount
fn clone(&self) -> FunctionParameterCount
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for FunctionParameterCount
impl Debug for FunctionParameterCount
sourceimpl From<u16> for FunctionParameterCount
impl From<u16> for FunctionParameterCount
sourceimpl Hash for FunctionParameterCount
impl Hash for FunctionParameterCount
sourceimpl PartialEq<FunctionParameterCount> for FunctionParameterCount
impl PartialEq<FunctionParameterCount> for FunctionParameterCount
sourcefn eq(&self, other: &FunctionParameterCount) -> bool
fn eq(&self, other: &FunctionParameterCount) -> bool
impl Copy for FunctionParameterCount
impl Eq for FunctionParameterCount
impl StructuralEq for FunctionParameterCount
impl StructuralPartialEq for FunctionParameterCount
Auto Trait Implementations
impl RefUnwindSafe for FunctionParameterCount
impl Send for FunctionParameterCount
impl Sync for FunctionParameterCount
impl Unpin for FunctionParameterCount
impl UnwindSafe for FunctionParameterCount
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more