pub struct Function {
pub name: &'static str,
pub callable: Callable,
}
Expand description
Represents environment function.
Fields§
§name: &'static str
§callable: Callable
Implementations§
Source§impl Function
impl Function
pub fn new_dynamic<F>(name: &'static str, callable: F) -> Function
pub fn new_static<F, I: IntoIterator<Item = Arg>>( name: &'static str, arguments: I, compile: F, ) -> Function
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Function
impl !RefUnwindSafe for Function
impl !Send for Function
impl !Sync for Function
impl Unpin for Function
impl !UnwindSafe for Function
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