pub struct WasmFunction { /* private fields */ }Implementations§
Source§impl WasmFunction
impl WasmFunction
pub fn new(name: impl Into<String>) -> Self
Sourcepub fn with_expression(name: impl Into<String>, expression: Expression) -> Self
pub fn with_expression(name: impl Into<String>, expression: Expression) -> Self
Creates a WasmFunction with an associated expression.
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>
Sourcepub fn expression(&self) -> Option<&Expression>
pub fn expression(&self) -> Option<&Expression>
Returns the expression if one was set (from a NamedExpression).
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 · Source§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 From<&NamedExpression> for WasmFunction
impl From<&NamedExpression> for WasmFunction
Source§fn from(named: &NamedExpression) -> WasmFunction
fn from(named: &NamedExpression) -> WasmFunction
Converts to this type from the input type.
Source§impl From<NamedExpression> for WasmFunction
impl From<NamedExpression> for WasmFunction
Source§fn from(named: NamedExpression) -> WasmFunction
fn from(named: NamedExpression) -> WasmFunction
Converts to this type from the input type.
Source§impl PartialEq for WasmFunction
impl PartialEq for WasmFunction
Source§impl Serialize for WasmFunction
impl Serialize for WasmFunction
impl Eq 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§
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§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.