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>,
pub arguments: Vec<(&'static str, Meaning, bool)>,
pub positional: Vec<(&'static str, Option<Meaning>)>,
}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>§arguments: Vec<(&'static str, Meaning, bool)>Each of named, in its order, beside what it means and whether it may move with t.
positional: Vec<(&'static str, Option<Meaning>)>The signature’s positional names, each beside its meaning where the model states one.
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