pub enum PluginLanguage {
Rust,
Golang,
Python,
Zig,
}
Variants§
Implementations§
Source§impl PluginLanguage
impl PluginLanguage
pub fn string_to_lang(lang: &str) -> PluginLanguage
Trait Implementations§
Source§impl AsRef<str> for PluginLanguage
impl AsRef<str> for PluginLanguage
Source§impl Clone for PluginLanguage
impl Clone for PluginLanguage
Source§fn clone(&self) -> PluginLanguage
fn clone(&self) -> PluginLanguage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PluginLanguage
impl Debug for PluginLanguage
Source§impl Default for PluginLanguage
impl Default for PluginLanguage
Source§fn default() -> PluginLanguage
fn default() -> PluginLanguage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PluginLanguage
impl<'de> Deserialize<'de> for PluginLanguage
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PluginLanguage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PluginLanguage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'_derivative_strum> From<&'_derivative_strum PluginLanguage> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum PluginLanguage> for &'static str
Source§fn from(x: &'_derivative_strum PluginLanguage) -> &'static str
fn from(x: &'_derivative_strum PluginLanguage) -> &'static str
Converts to this type from the input type.
Source§impl From<PluginLanguage> for &'static str
impl From<PluginLanguage> for &'static str
Source§fn from(x: PluginLanguage) -> &'static str
fn from(x: PluginLanguage) -> &'static str
Converts to this type from the input type.
Source§impl FromStr for PluginLanguage
impl FromStr for PluginLanguage
Source§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<PluginLanguage, <PluginLanguage as FromStr>::Err>
fn from_str(s: &str) -> Result<PluginLanguage, <PluginLanguage as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreSource§impl IntoEnumIterator for PluginLanguage
impl IntoEnumIterator for PluginLanguage
type Iterator = PluginLanguageIter
fn iter() -> PluginLanguageIter ⓘ
Source§impl PartialEq for PluginLanguage
impl PartialEq for PluginLanguage
Source§impl Serialize for PluginLanguage
impl Serialize for PluginLanguage
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
Source§impl TryFrom<&str> for PluginLanguage
impl TryFrom<&str> for PluginLanguage
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(
s: &str,
) -> Result<PluginLanguage, <PluginLanguage as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<PluginLanguage, <PluginLanguage as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for PluginLanguage
impl StructuralPartialEq for PluginLanguage
Auto Trait Implementations§
impl Freeze for PluginLanguage
impl RefUnwindSafe for PluginLanguage
impl Send for PluginLanguage
impl Sync for PluginLanguage
impl Unpin for PluginLanguage
impl UnwindSafe for PluginLanguage
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<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>
Converts
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>
Converts
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