pub struct WasmFunction { /* private fields */ }Implementations§
Source§impl WasmFunction
impl WasmFunction
pub fn new(name: impl Into<String>) -> Self
pub fn with_relation(self, relation: impl Into<String>) -> Self
pub fn with_hash(self, hash: impl Into<String>) -> Self
pub fn with_comparator(self, comparator: impl Into<String>) -> Self
pub fn name(&self) -> &str
pub fn relation_function(&self) -> Option<&str>
pub fn hash_function(&self) -> Option<&str>
pub fn comparator_function(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for WasmFunction
impl Clone for WasmFunction
Source§fn clone(&self) -> WasmFunction
fn clone(&self) -> WasmFunction
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WasmFunction
impl Debug for WasmFunction
Source§impl<'de> Deserialize<'de> for WasmFunction
impl<'de> Deserialize<'de> for WasmFunction
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WasmFunction
impl PartialEq for WasmFunction
Source§impl Serialize for WasmFunction
impl Serialize for WasmFunction
impl Eq for WasmFunction
impl StructuralPartialEq for WasmFunction
Auto Trait Implementations§
impl Freeze for WasmFunction
impl RefUnwindSafe for WasmFunction
impl Send for WasmFunction
impl Sync for WasmFunction
impl Unpin for WasmFunction
impl UnwindSafe for WasmFunction
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.