pub enum PluginType {
CSharp,
Make,
Maven,
NoTests,
Python3,
R,
Ant,
}Expand description
Allows calling LanguagePlugin functions without constructing the plugin.
Variants§
Implementations§
Source§impl PluginType
impl PluginType
pub fn from_exercise(path: &Path) -> Result<Self, PluginError>
pub fn from_archive<R: Read + Seek>( archive: &mut Archive<R>, ) -> Result<Self, PluginError>
pub fn get_exercise_packaging_configuration( self, exercise_path: &Path, ) -> Result<ExercisePackagingConfiguration, TmcError>
pub fn extract_project<R: Read + Seek>( self, archive: &mut Archive<R>, target_location: &Path, clean: bool, ) -> Result<(), TmcError>
pub fn extract_student_files( self, compressed_project: impl Read + Seek, compression: Compression, target_location: &Path, ) -> Result<(), TmcError>
pub fn find_project_dir_in_archive<R: Read + Seek>( self, archive: &mut Archive<R>, ) -> Result<PathBuf, TmcError>
pub fn safe_find_project_dir_in_archive<R: Read + Seek>( self, archive: &mut Archive<R>, ) -> Result<PathBuf, TmcError>
pub fn get_available_points( self, exercise_path: &Path, ) -> Result<Vec<String>, TmcError>
Trait Implementations§
Source§impl Clone for PluginType
impl Clone for PluginType
Source§fn clone(&self) -> PluginType
fn clone(&self) -> PluginType
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 moreimpl Copy for PluginType
Auto Trait Implementations§
impl Freeze for PluginType
impl RefUnwindSafe for PluginType
impl Send for PluginType
impl Sync for PluginType
impl Unpin for PluginType
impl UnwindSafe for PluginType
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