pub enum RuntimeLanguage {
Python,
Node,
Rust,
Go,
Swift,
Ruby,
Php,
Java,
}Expand description
Supported Codex Universal runtime languages.
Variants§
Python
Python via CODEX_ENV_PYTHON_VERSION.
Node
Node.js via CODEX_ENV_NODE_VERSION.
Rust
Rust via CODEX_ENV_RUST_VERSION.
Go
Go via CODEX_ENV_GO_VERSION.
Swift
Swift via CODEX_ENV_SWIFT_VERSION.
Ruby
Ruby via CODEX_ENV_RUBY_VERSION.
Php
PHP via CODEX_ENV_PHP_VERSION.
Java
Java via CODEX_ENV_JAVA_VERSION.
Implementations§
Source§impl RuntimeLanguage
impl RuntimeLanguage
Sourcepub fn parse(language: &str) -> Result<Self, RuntimeSpecError>
pub fn parse(language: &str) -> Result<Self, RuntimeSpecError>
Parse a supported runtime language or alias.
§Arguments
language- Language name from a workspace runtime spec.
§Returns
A supported runtime language.
§Errors
Returns RuntimeSpecError::UnsupportedLanguage when the language is unknown.
Sourcepub const fn environment_variable(self) -> &'static str
pub const fn environment_variable(self) -> &'static str
Return the Codex Universal environment variable for this language.
§Returns
The CODEX_ENV_* variable name.
Sourcepub const fn supported_versions(self) -> &'static [&'static str]
pub const fn supported_versions(self) -> &'static [&'static str]
Return supported versions for this language.
§Returns
Versions supported by the current Codex Universal support matrix.
Trait Implementations§
Source§impl Clone for RuntimeLanguage
impl Clone for RuntimeLanguage
Source§fn clone(&self) -> RuntimeLanguage
fn clone(&self) -> RuntimeLanguage
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 RuntimeLanguage
Source§impl Debug for RuntimeLanguage
impl Debug for RuntimeLanguage
impl Eq for RuntimeLanguage
Source§impl Hash for RuntimeLanguage
impl Hash for RuntimeLanguage
Source§impl PartialEq for RuntimeLanguage
impl PartialEq for RuntimeLanguage
Source§fn eq(&self, other: &RuntimeLanguage) -> bool
fn eq(&self, other: &RuntimeLanguage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RuntimeLanguage
Auto Trait Implementations§
impl Freeze for RuntimeLanguage
impl RefUnwindSafe for RuntimeLanguage
impl Send for RuntimeLanguage
impl Sync for RuntimeLanguage
impl Unpin for RuntimeLanguage
impl UnsafeUnpin for RuntimeLanguage
impl UnwindSafe for RuntimeLanguage
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> 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§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.