Struct endbasic_core::syms::CallableMetadata
source · pub struct CallableMetadata { /* private fields */ }
Expand description
Representation of a callable’s metadata.
The callable is expected to hold onto an instance of this object within its struct to make queries fast.
Implementations§
source§impl CallableMetadata
impl CallableMetadata
sourcepub fn return_type(&self) -> VarType
pub fn return_type(&self) -> VarType
Gets the callable’s return type.
sourcepub fn category(&self) -> &'static str
pub fn category(&self) -> &'static str
Gets the callable’s category as a collection of lines. The first line is the title of the category, and any extra lines are additional information for it.
sourcepub fn description(&self) -> Lines<'static>
pub fn description(&self) -> Lines<'static>
Gets the callable’s textual description as a collection of lines. The first line is the summary of the callable’s purpose.
sourcepub fn is_argless(&self) -> bool
pub fn is_argless(&self) -> bool
Returns true if this is a callable that takes no arguments.
Trait Implementations§
source§impl Clone for CallableMetadata
impl Clone for CallableMetadata
source§fn clone(&self) -> CallableMetadata
fn clone(&self) -> CallableMetadata
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more