pub struct BuiltinSpec {
pub name: &'static str,
pub arity: u32,
pub kind: BuiltinKind,
pub doc: &'static str,
}Expand description
One vocabulary entry. arity is the canonical arity; call/N is
listed once at its minimum arity (1) and noted variadic in doc.
Fields§
§name: &'static str§arity: u32§kind: BuiltinKind§doc: &'static strImplementations§
Source§impl BuiltinSpec
impl BuiltinSpec
Sourcepub fn completable(&self) -> bool
pub fn completable(&self) -> bool
Completion-eligible iff the name is a typeable identifier (first
char ASCII-alphabetic). Offers findall/once/is/compare/
nl, suppresses operators and !. Deliberately NOT derived from
kind: is/compare (Inline) complete, \+ (Control) does not.
If a real counter-example appears, promote this to an explicit
complete: bool column on BuiltinSpec and overrule per row.
Trait Implementations§
Source§impl Clone for BuiltinSpec
impl Clone for BuiltinSpec
Source§fn clone(&self) -> BuiltinSpec
fn clone(&self) -> BuiltinSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BuiltinSpec
Auto Trait Implementations§
impl Freeze for BuiltinSpec
impl RefUnwindSafe for BuiltinSpec
impl Send for BuiltinSpec
impl Sync for BuiltinSpec
impl Unpin for BuiltinSpec
impl UnsafeUnpin for BuiltinSpec
impl UnwindSafe for BuiltinSpec
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