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
sourceimpl 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.
Trait Implementations
sourceimpl Clone for CallableMetadata
impl Clone for CallableMetadata
sourcefn clone(&self) -> CallableMetadata
fn clone(&self) -> CallableMetadata
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for CallableMetadata
impl Send for CallableMetadata
impl Sync for CallableMetadata
impl Unpin for CallableMetadata
impl UnwindSafe for CallableMetadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more