#[non_exhaustive]pub enum UnaryMathOp {
Floor,
Ceil,
Abs,
}Expand description
Unary math function applied to a numeric condition subtree.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for UnaryMathOp
impl Clone for UnaryMathOp
Source§fn clone(&self) -> UnaryMathOp
fn clone(&self) -> UnaryMathOp
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 UnaryMathOp
impl Debug for UnaryMathOp
Source§impl<'de> Deserialize<'de> for UnaryMathOp
impl<'de> Deserialize<'de> for UnaryMathOp
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 Display for UnaryMathOp
impl Display for UnaryMathOp
Source§impl From<UnaryMathOp> for JsValuewhere
UnaryMathOp: Serialize,
impl From<UnaryMathOp> for JsValuewhere
UnaryMathOp: Serialize,
Source§fn from(value: UnaryMathOp) -> Self
fn from(value: UnaryMathOp) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for UnaryMathOpwhere
Self: DeserializeOwned,
impl FromWasmAbi for UnaryMathOpwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &UnaryMathOpwhere
UnaryMathOp: Serialize,
impl IntoWasmAbi for &UnaryMathOpwhere
UnaryMathOp: Serialize,
Source§impl IntoWasmAbi for UnaryMathOpwhere
UnaryMathOp: Serialize,
impl IntoWasmAbi for UnaryMathOpwhere
UnaryMathOp: Serialize,
Source§impl JsonSchema for UnaryMathOp
impl JsonSchema for UnaryMathOp
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl OptionFromWasmAbi for UnaryMathOpwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for UnaryMathOpwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for UnaryMathOpwhere
UnaryMathOp: Serialize,
impl OptionIntoWasmAbi for UnaryMathOpwhere
UnaryMathOp: Serialize,
Source§impl PartialEq for UnaryMathOp
impl PartialEq for UnaryMathOp
Source§impl RefFromWasmAbi for UnaryMathOpwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for UnaryMathOpwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = SelfOwner<UnaryMathOp>
type Anchor = SelfOwner<UnaryMathOp>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for UnaryMathOp
impl Serialize for UnaryMathOp
Source§impl Tsify for UnaryMathOp
impl Tsify for UnaryMathOp
const DECL: &'static str = "/**\n * Unary math function applied to a numeric condition subtree.\n */\nexport type UnaryMathOp = \"floor\" | \"ceil\" | \"abs\";"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for UnaryMathOpwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for UnaryMathOpwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for UnaryMathOpwhere
UnaryMathOp: Serialize,
impl VectorIntoWasmAbi for UnaryMathOpwhere
UnaryMathOp: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for UnaryMathOp
impl WasmDescribe for UnaryMathOp
Source§impl WasmDescribeVector for UnaryMathOp
impl WasmDescribeVector for UnaryMathOp
impl Copy for UnaryMathOp
impl Eq for UnaryMathOp
impl StructuralPartialEq for UnaryMathOp
Auto Trait Implementations§
impl Freeze for UnaryMathOp
impl RefUnwindSafe for UnaryMathOp
impl Send for UnaryMathOp
impl Sync for UnaryMathOp
impl Unpin for UnaryMathOp
impl UnsafeUnpin for UnaryMathOp
impl UnwindSafe for UnaryMathOp
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<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more