pub enum SignalDomain {
Bool,
Level,
Count,
}Expand description
Semantic domain carried by a monomorphic Signal wire.
Domains are graph-time contracts. They do not change the runtime wire
representation selected by signal-f32 or signal-i32.
Variants§
Bool
Exact false/true values (ZERO/ONE).
Level
Continuous numeric values.
Count
Whole-number values.
Implementations§
Source§impl SignalDomain
impl SignalDomain
Sourcepub const fn is_numeric(self) -> bool
pub const fn is_numeric(self) -> bool
Whether KnotKind numeric ops (Calc, Map, Threshold, …) may use this domain.
Trait Implementations§
Source§impl Clone for SignalDomain
impl Clone for SignalDomain
Source§fn clone(&self) -> SignalDomain
fn clone(&self) -> SignalDomain
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SignalDomain
Source§impl Debug for SignalDomain
impl Debug for SignalDomain
Source§impl<'de> Deserialize<'de> for SignalDomain
impl<'de> Deserialize<'de> for SignalDomain
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
impl Eq for SignalDomain
Source§impl Hash for SignalDomain
impl Hash for SignalDomain
Source§impl JsonSchema for SignalDomain
impl JsonSchema for SignalDomain
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Ord for SignalDomain
impl Ord for SignalDomain
Source§fn cmp(&self, other: &SignalDomain) -> Ordering
fn cmp(&self, other: &SignalDomain) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SignalDomain
impl PartialEq for SignalDomain
Source§impl PartialOrd for SignalDomain
impl PartialOrd for SignalDomain
Source§impl Serialize for SignalDomain
impl Serialize for SignalDomain
impl StructuralPartialEq for SignalDomain
Auto Trait Implementations§
impl Freeze for SignalDomain
impl RefUnwindSafe for SignalDomain
impl Send for SignalDomain
impl Sync for SignalDomain
impl Unpin for SignalDomain
impl UnsafeUnpin for SignalDomain
impl UnwindSafe for SignalDomain
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