pub enum FuncCategory {
Show 24 variants
Hashing,
Arithmetic,
Comparison,
Variadic,
Conversions,
Distributions,
Datetime,
Encoding,
Interpolation,
Math,
Probability,
Weighted,
Formatting,
String,
Json,
ByteBuffers,
Digest,
Noise,
Regex,
Permutation,
RealData,
Context,
Diagnostic,
Data,
}Expand description
Functional category for a Polydat node function.
Every native node and stdlib module belongs to exactly one category.
Categories group the registry for listings (by_category) and provide
semantic organization for documentation and discovery.
Variants§
Hashing
Core deterministic hashing.
Arithmetic
Integer arithmetic with constant parameters.
Comparison
Comparison and selection: ==, !=, <, >, <=, >=, if(…). Comparison nodes return u64 truth values (0 or 1); select nodes pick between two operand values based on a u64 cond.
Variadic
Variadic N-ary operations (sum, product, min, max).
Conversions
Type conversions between u64, f64, String, etc.
Distributions
Statistical distribution LUT builders and samplers.
Datetime
Date and time generation and decomposition.
Encoding
HTML, URL, hex, base64 encoding/decoding.
Interpolation
Linear interpolation, range mapping, quantization.
Math
Trigonometric and mathematical functions (sin, cos, sqrt, etc.).
Probability
Probability modeling: coins, selection, conditionals.
Weighted
Weighted categorical selection.
Formatting
Printf-style and structured string formatting.
String
String generation: combinations, number words.
Json
JSON construction, serialization, merging.
ByteBuffers
Byte buffer construction and manipulation.
Digest
Cryptographic and non-cryptographic digests.
Noise
Coherent noise: Perlin, simplex.
Regex
Regular expression matching and substitution.
Permutation
Bijective permutations and shuffles.
RealData
Real-world data: names, places, codes.
Context
Non-deterministic context: wall clock, counters.
Diagnostic
Debugging and introspection.
Data
File-based data access: CSV, JSONL, text files.
Implementations§
Source§impl FuncCategory
impl FuncCategory
Sourcepub fn display_name(&self) -> &'static str
pub fn display_name(&self) -> &'static str
Display name for the category (used in describe output).
Sourcepub fn parse(s: &str) -> Option<Self>
pub fn parse(s: &str) -> Option<Self>
Parse a category name from a string (case-insensitive): the
text of a stdlib file’s // @category: Name line. No compile
path consumes it.
Sourcepub fn display_order() -> &'static [Self]
pub fn display_order() -> &'static [Self]
Canonical ordering for display (same order as the enum definition).
Trait Implementations§
Source§impl Clone for FuncCategory
impl Clone for FuncCategory
Source§fn clone(&self) -> FuncCategory
fn clone(&self) -> FuncCategory
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for FuncCategory
Source§impl Debug for FuncCategory
impl Debug for FuncCategory
impl Eq for FuncCategory
Source§impl Hash for FuncCategory
impl Hash for FuncCategory
Source§impl PartialEq for FuncCategory
impl PartialEq for FuncCategory
impl StructuralPartialEq for FuncCategory
Auto Trait Implementations§
impl Freeze for FuncCategory
impl RefUnwindSafe for FuncCategory
impl Send for FuncCategory
impl Sync for FuncCategory
impl Unpin for FuncCategory
impl UnsafeUnpin for FuncCategory
impl UnwindSafe for FuncCategory
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more