pub struct Callable {
pub name: &'static str,
pub required: usize,
pub max_positional: usize,
pub named: &'static [&'static str],
pub required_named: &'static [&'static str],
pub takes_gain: Option<bool>,
}Fields§
§name: &'static str§required: usize§max_positional: usize§named: &'static [&'static str]§required_named: &'static [&'static str]A subset of named with no default — a caller who omits one gets a refusal, not a
fallback. Every builtin leaves this empty today.
takes_gain: Option<bool>Auto Trait Implementations§
impl Freeze for Callable
impl RefUnwindSafe for Callable
impl Send for Callable
impl Sync for Callable
impl Unpin for Callable
impl UnsafeUnpin for Callable
impl UnwindSafe for Callable
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