pub struct NoTestsStudentFilePolicy { /* private fields */ }Expand description
The no-tests policy considers all files to be student source files by default.
Trait Implementations§
Source§impl StudentFilePolicy for NoTestsStudentFilePolicy
impl StudentFilePolicy for NoTestsStudentFilePolicy
Source§fn new_with_project_config(project_config: TmcProjectYml) -> Selfwhere
Self: Sized,
fn new_with_project_config(project_config: TmcProjectYml) -> Selfwhere
Self: Sized,
This constructor should store the project config in the implementing struct.
Source§fn get_project_config(&self) -> &TmcProjectYml
fn get_project_config(&self) -> &TmcProjectYml
The policy should contain a TmcProjectYml parsed from the project this policy was created for.
Source§fn is_non_extra_student_file(&self, _file_path: &Path) -> bool
fn is_non_extra_student_file(&self, _file_path: &Path) -> bool
Used by is_student_file.
Defines a language plugin policy’s rules for determining whether a file is a student file or not.
Source§fn new(project_dir: &Path) -> Result<Self, TmcError>where
Self: Sized,
fn new(project_dir: &Path) -> Result<Self, TmcError>where
Self: Sized,
Parses a project config and calls the helper constructor. Implementing types should only be constructed using this function.
Auto Trait Implementations§
impl Freeze for NoTestsStudentFilePolicy
impl RefUnwindSafe for NoTestsStudentFilePolicy
impl Send for NoTestsStudentFilePolicy
impl Sync for NoTestsStudentFilePolicy
impl Unpin for NoTestsStudentFilePolicy
impl UnwindSafe for NoTestsStudentFilePolicy
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