#[non_exhaustive]pub struct FuncMetadata {
pub hash: u64,
pub namespace: FnNamespace,
pub access: FnAccess,
pub name: Identifier,
pub num_params: usize,
pub param_types: FnArgsVec<TypeId>,
pub params_info: FnArgsVec<Identifier>,
pub return_type: Identifier,
pub comments: StaticVec<SmartString<LazyCompact>>,
}Expand description
(internals) A type containing the metadata of a single registered function.
Exported under the internals features only.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hash: u64Hash value.
namespace: FnNamespaceFunction namespace.
access: FnAccessFunction access mode.
name: IdentifierFunction name.
num_params: usizeNumber of parameters.
param_types: FnArgsVec<TypeId>Parameter types (if applicable).
params_info: FnArgsVec<Identifier>Parameter names and types (if available).
Exported under the metadata feature only.
return_type: IdentifierReturn type name.
Exported under the metadata feature only.
comments: StaticVec<SmartString<LazyCompact>>Comments.
Exported under the metadata feature only.
Implementations§
Source§impl FuncMetadata
impl FuncMetadata
Trait Implementations§
Source§impl Clone for FuncMetadata
impl Clone for FuncMetadata
Source§fn clone(&self) -> FuncMetadata
fn clone(&self) -> FuncMetadata
Returns a duplicate 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 moreSource§impl Debug for FuncMetadata
impl Debug for FuncMetadata
Source§impl Hash for FuncMetadata
impl Hash for FuncMetadata
Source§impl PartialEq for FuncMetadata
impl PartialEq for FuncMetadata
impl Eq for FuncMetadata
impl StructuralPartialEq for FuncMetadata
Auto Trait Implementations§
impl Freeze for FuncMetadata
impl RefUnwindSafe for FuncMetadata
impl Send for FuncMetadata
impl Sync for FuncMetadata
impl Unpin for FuncMetadata
impl UnwindSafe for FuncMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Variant for T
impl<T> Variant for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant trait object to &mut dyn Any.Source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant trait object to Box<dyn Any>.