Struct sieve::FunctionMap
source · pub struct FunctionMap { /* private fields */ }
Implementations§
source§impl FunctionMap
impl FunctionMap
pub fn new() -> Self
pub fn with_function(self, name: impl Into<String>, fnc: Function) -> Self
pub fn with_function_no_args( self, name: impl Into<String>, fnc: Function, ) -> Self
pub fn with_function_args( self, name: impl Into<String>, fnc: Function, num_args: u32, ) -> Self
pub fn with_external_function( self, name: impl Into<String>, id: ExternalId, num_args: u32, ) -> Self
pub fn set_external_function( &mut self, name: impl Into<String>, id: ExternalId, num_args: u32, )
Trait Implementations§
source§impl Clone for FunctionMap
impl Clone for FunctionMap
source§fn clone(&self) -> FunctionMap
fn clone(&self) -> FunctionMap
Returns a copy 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 Default for FunctionMap
impl Default for FunctionMap
source§fn default() -> FunctionMap
fn default() -> FunctionMap
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FunctionMap
impl RefUnwindSafe for FunctionMap
impl Send for FunctionMap
impl Sync for FunctionMap
impl Unpin for FunctionMap
impl UnwindSafe for FunctionMap
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)