pub struct HostFunctionDecl {
pub name: String,
pub parameters: Option<Vec<String>>,
pub about: Option<String>,
pub entry: EntryId,
}Expand description
A function a file declares under $functions without !: the application passes it.
Fields§
§name: StringIts name.
parameters: Option<Vec<String>>As written in the key; None when the key has no brackets.
about: Option<String>about
entry: EntryIdThe entry that declares it.
Trait Implementations§
Source§impl Clone for HostFunctionDecl
impl Clone for HostFunctionDecl
Source§impl Debug for HostFunctionDecl
impl Debug for HostFunctionDecl
Source§impl PartialEq for HostFunctionDecl
impl PartialEq for HostFunctionDecl
impl StructuralPartialEq for HostFunctionDecl
Auto Trait Implementations§
impl Forget for HostFunctionDecl
impl Freeze for HostFunctionDecl
impl Move for HostFunctionDecl
impl RefUnwindSafe for HostFunctionDecl
impl Send for HostFunctionDeclwhere
RawVecInner: Send,
impl Sync for HostFunctionDeclwhere
RawVecInner: Sync,
impl Unpin for HostFunctionDecl
impl UnsafeUnpin for HostFunctionDeclwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for HostFunctionDeclwhere
RawVecInner: UnwindSafe,
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