pub enum IKunTree {
Show 54 variants
Constant(i64),
FloatConstant(u64),
BooleanConstant(bool),
StringConstant(String),
Symbol(String),
Map(Box<IKunTree>, Box<IKunTree>),
Filter(Box<IKunTree>, Box<IKunTree>),
Reduce(Box<IKunTree>, Box<IKunTree>, Box<IKunTree>),
StateUpdate(Box<IKunTree>, Box<IKunTree>),
Choice(Box<IKunTree>, Box<IKunTree>, Box<IKunTree>),
Repeat(Box<IKunTree>, Box<IKunTree>),
LifeCycle(Box<IKunTree>, Box<IKunTree>),
Meta(Box<IKunTree>),
Trap(Box<IKunTree>),
Return(Box<IKunTree>),
Seq(Vec<IKunTree>),
Compose(Box<IKunTree>, Box<IKunTree>),
WithContext(Box<IKunTree>, Box<IKunTree>),
WithConstraint(Box<IKunTree>, Box<IKunTree>),
CpuContext,
GpuContext,
AsyncContext,
SpatialContext,
ComptimeContext,
ResourceContext,
SafeContext,
EffectConstraint(Effect),
OwnershipConstraint(Ownership),
TypeConstraint(String),
AtomicConstraint,
Extension(String, Vec<IKunTree>),
CrossLangCall {
language: String,
module_path: String,
function_name: String,
arguments: Vec<IKunTree>,
},
GpuMap(Box<IKunTree>, Box<IKunTree>),
CpuMap(Box<IKunTree>, Box<IKunTree>),
TiledMap(usize, Box<IKunTree>, Box<IKunTree>),
VectorizedMap(usize, Box<IKunTree>, Box<IKunTree>),
UnrolledMap(usize, Box<IKunTree>, Box<IKunTree>),
SoAMap(Box<IKunTree>, Box<IKunTree>),
SoALayout(Box<IKunTree>),
AoSLayout(Box<IKunTree>),
Tiled(usize, Box<IKunTree>),
Unrolled(usize, Box<IKunTree>),
Vectorized(usize, Box<IKunTree>),
Pipe(Box<IKunTree>, Box<IKunTree>),
Reg(Box<IKunTree>),
Lambda(Vec<String>, Box<IKunTree>),
Apply(Box<IKunTree>, Vec<IKunTree>),
Closure(Box<IKunTree>, Vec<IKunTree>),
ResourceClone(Box<IKunTree>),
ResourceDrop(Box<IKunTree>),
Import(String, String),
Export(String, Box<IKunTree>),
Module(String, Vec<IKunTree>),
Source(Loc, Box<IKunTree>),
}Expand description
Recursive tree structure for Backends
Variants§
Constant(i64)
FloatConstant(u64)
BooleanConstant(bool)
StringConstant(String)
Symbol(String)
Map(Box<IKunTree>, Box<IKunTree>)
Filter(Box<IKunTree>, Box<IKunTree>)
Reduce(Box<IKunTree>, Box<IKunTree>, Box<IKunTree>)
StateUpdate(Box<IKunTree>, Box<IKunTree>)
Choice(Box<IKunTree>, Box<IKunTree>, Box<IKunTree>)
Repeat(Box<IKunTree>, Box<IKunTree>)
LifeCycle(Box<IKunTree>, Box<IKunTree>)
Meta(Box<IKunTree>)
Trap(Box<IKunTree>)
Return(Box<IKunTree>)
Seq(Vec<IKunTree>)
Compose(Box<IKunTree>, Box<IKunTree>)
WithContext(Box<IKunTree>, Box<IKunTree>)
WithConstraint(Box<IKunTree>, Box<IKunTree>)
CpuContext
GpuContext
AsyncContext
SpatialContext
ComptimeContext
ResourceContext
SafeContext
EffectConstraint(Effect)
OwnershipConstraint(Ownership)
TypeConstraint(String)
AtomicConstraint
Extension(String, Vec<IKunTree>)
CrossLangCall
GpuMap(Box<IKunTree>, Box<IKunTree>)
CpuMap(Box<IKunTree>, Box<IKunTree>)
TiledMap(usize, Box<IKunTree>, Box<IKunTree>)
VectorizedMap(usize, Box<IKunTree>, Box<IKunTree>)
UnrolledMap(usize, Box<IKunTree>, Box<IKunTree>)
SoAMap(Box<IKunTree>, Box<IKunTree>)
SoALayout(Box<IKunTree>)
AoSLayout(Box<IKunTree>)
Tiled(usize, Box<IKunTree>)
Unrolled(usize, Box<IKunTree>)
Vectorized(usize, Box<IKunTree>)
Pipe(Box<IKunTree>, Box<IKunTree>)
Reg(Box<IKunTree>)
Lambda(Vec<String>, Box<IKunTree>)
Apply(Box<IKunTree>, Vec<IKunTree>)
Closure(Box<IKunTree>, Vec<IKunTree>)
ResourceClone(Box<IKunTree>)
ResourceDrop(Box<IKunTree>)
Import(String, String)
Export(String, Box<IKunTree>)
Module(String, Vec<IKunTree>)
Source(Loc, Box<IKunTree>)
Source location information for debugging
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IKunTree
impl<'de> Deserialize<'de> for IKunTree
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IKunTree, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IKunTree, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for IKunTree
impl Serialize for IKunTree
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for IKunTree
impl StructuralPartialEq for IKunTree
Auto Trait Implementations§
impl Freeze for IKunTree
impl RefUnwindSafe for IKunTree
impl Send for IKunTree
impl Sync for IKunTree
impl Unpin for IKunTree
impl UnwindSafe for IKunTree
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