pub struct FunctionInfo {
pub name: String,
pub signature: String,
pub description: String,
pub category: FunctionCategory,
pub parameters: Vec<ParameterInfo>,
pub return_type: String,
pub example: Option<String>,
pub implemented: bool,
pub comptime_only: bool,
}Expand description
Information about a built-in function
Fields§
§name: String§signature: String§description: String§category: FunctionCategory§parameters: Vec<ParameterInfo>§return_type: String§example: Option<String>§implemented: boolWhether this function is fully implemented (default: true for backwards compat)
comptime_only: boolWhether this function is only valid inside comptime { } blocks
Trait Implementations§
Source§impl Clone for FunctionInfo
impl Clone for FunctionInfo
Source§fn clone(&self) -> FunctionInfo
fn clone(&self) -> FunctionInfo
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 moreSource§impl Debug for FunctionInfo
impl Debug for FunctionInfo
Source§impl Default for FunctionInfo
impl Default for FunctionInfo
Source§impl<'de> Deserialize<'de> for FunctionInfo
impl<'de> Deserialize<'de> for FunctionInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&BuiltinMetadata> for FunctionInfo
impl From<&BuiltinMetadata> for FunctionInfo
Source§fn from(meta: &BuiltinMetadata) -> Self
fn from(meta: &BuiltinMetadata) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FunctionInfo
impl RefUnwindSafe for FunctionInfo
impl Send for FunctionInfo
impl Sync for FunctionInfo
impl Unpin for FunctionInfo
impl UnsafeUnpin for FunctionInfo
impl UnwindSafe for FunctionInfo
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