pub enum Function {
User(UserFunction),
Native(NativeFunction),
}
Variants§
User(UserFunction)
Native(NativeFunction)
Trait Implementations§
Source§impl From<NativeFunction> for Function
impl From<NativeFunction> for Function
Source§fn from(v: NativeFunction) -> Self
fn from(v: NativeFunction) -> Self
Converts to this type from the input type.
Source§impl From<UserFunction> for Function
impl From<UserFunction> for Function
Source§fn from(v: UserFunction) -> Self
fn from(v: UserFunction) -> Self
Converts to this type from the input type.
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