pub struct NothingIsStudentFilePolicy { /* private fields */ }Expand description
Mock policy that ignores the config file and returns false for all files.
Trait Implementations§
Source§impl StudentFilePolicy for NothingIsStudentFilePolicy
impl StudentFilePolicy for NothingIsStudentFilePolicy
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.
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, _path: &Path) -> bool
fn is_non_extra_student_file(&self, _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.
Auto Trait Implementations§
impl Freeze for NothingIsStudentFilePolicy
impl RefUnwindSafe for NothingIsStudentFilePolicy
impl Send for NothingIsStudentFilePolicy
impl Sync for NothingIsStudentFilePolicy
impl Unpin for NothingIsStudentFilePolicy
impl UnwindSafe for NothingIsStudentFilePolicy
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