pub enum Target {
Rust,
Ruchy,
Ptx,
Wgsl,
Spirv,
Lean,
Shell,
}Expand description
Target language a backend can emit.
Variants§
Rust
Idiomatic Rust source. Implemented by xpile-rust-codegen.
Ruchy
Ruchy source. Implemented by xpile-ruchy-codegen.
Ptx
NVIDIA PTX text. Implemented by xpile-ptx-codegen.
Wgsl
WebGPU Shading Language. Implemented by xpile-wgsl-codegen.
Spirv
SPIR-V text or binary. Implemented by xpile-spirv-codegen (future).
Lean
Lean 4 executable code (def, partial def, inductive, …).
Implemented by xpile-lean-codegen. The proof-lane Lean (theorems)
goes through xpile-lean-contract-backend instead.
Shell
POSIX shell (sh / bash / zsh) — the bashrs merger domain.
Implemented by bashrs-backend (scaffold at v0.1.0; full emit
at v0.2.0 once the bashrs source folding lands). PMAT-037 /
XPILE-BASHRS-MERGER-001. See sub/bashrs-merger.md Layer A.
Trait Implementations§
impl Copy for Target
Source§impl<'de> Deserialize<'de> for Target
impl<'de> Deserialize<'de> for Target
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 Target
Source§impl Ord for Target
impl Ord for Target
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 PartialOrd for Target
impl PartialOrd for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.