pub enum ScriptLang {
Python,
R,
}Expand description
Defines the language of the script.
Variants§
Implementations§
Source§impl ScriptLang
impl ScriptLang
Sourcepub fn from_extension(ext: &OsStr) -> Option<Self>
pub fn from_extension(ext: &OsStr) -> Option<Self>
Returns the language type from a file extension
or None if none match.
Trait Implementations§
Source§impl Clone for ScriptLang
impl Clone for ScriptLang
Source§fn clone(&self) -> ScriptLang
fn clone(&self) -> ScriptLang
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 moreAuto Trait Implementations§
impl Freeze for ScriptLang
impl RefUnwindSafe for ScriptLang
impl Send for ScriptLang
impl Sync for ScriptLang
impl Unpin for ScriptLang
impl UnwindSafe for ScriptLang
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