pub enum Lang {
Math,
Polars,
Rust,
Python,
Plugin,
}Expand description
What a code space is written in. Serialized in snake case ("math", "plugin", …).
Variants§
Math
Formulas over columns (sma20 = sma(close, 20)), compiled through generated Rust.
Polars
Polars expressions (ret = col("close").pct_change(lit(1))), compiled through generated Rust.
Rust
Rust against the profile’s plugin SDK.
Python
Typed Python functions, translated to Rust in process (ruff parser, python-ast codegen).
Plugin
A library built elsewhere (the source is its path).
Implementations§
Trait Implementations§
impl Copy for Lang
Source§impl<'de> Deserialize<'de> for Lang
impl<'de> Deserialize<'de> for Lang
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 Lang
impl StructuralPartialEq for Lang
Auto Trait Implementations§
impl Forget for Lang
impl Freeze for Lang
impl Move for Lang
impl RefUnwindSafe for Lang
impl Send for Lang
impl Sync for Lang
impl Unpin for Lang
impl UnsafeUnpin for Lang
impl UnwindSafe for Lang
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