pub struct Functions(pub IndexMap<String, HostFn>);Expand description
The functions a file declares under $functions without !, passed to resolve (SPEC 5.8).
Tuple Fields§
§0: IndexMap<String, HostFn>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Functions
impl !UnwindSafe for Functions
impl Forget for Functions
impl Freeze for Functions
impl Move for Functions
impl Send for Functions
impl Sync for Functions
impl Unpin for Functions
impl UnsafeUnpin for Functionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Arc<dyn Fn(&[Value]) -> Result<Value, HostError> + Sync + Send>>>: UnsafeUnpin,
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