pub(crate) struct FnArgs {
pub(crate) rest: bool,
pub(crate) required: u16,
pub(crate) optional: u16,
pub(crate) advice: bool,
}
Expand description
Argument requirments to a function.
Fields§
§rest: bool
a &rest argument.
required: u16
minimum required arguments.
optional: u16
&optional arguments.
advice: bool
If this function is advised.
Implementations§
Source§impl FnArgs
impl FnArgs
pub(crate) fn from_arg_spec(spec: i64) -> Result<Self>
pub(crate) fn into_arg_spec(self) -> u64
Trait Implementations§
impl Copy for FnArgs
impl Eq for FnArgs
impl StructuralPartialEq for FnArgs
Auto Trait Implementations§
impl Freeze for FnArgs
impl RefUnwindSafe for FnArgs
impl Send for FnArgs
impl Sync for FnArgs
impl Unpin for FnArgs
impl UnwindSafe for FnArgs
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.