pub struct EverythingIsStudentFilePolicy { /* private fields */ }Expand description
Mock policy that ignores the config file and returns true for all files.
Trait Implementations§
Source§impl Default for EverythingIsStudentFilePolicy
impl Default for EverythingIsStudentFilePolicy
Source§fn default() -> EverythingIsStudentFilePolicy
fn default() -> EverythingIsStudentFilePolicy
Returns the “default value” for a type. Read more
Source§impl StudentFilePolicy for EverythingIsStudentFilePolicy
impl StudentFilePolicy for EverythingIsStudentFilePolicy
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 EverythingIsStudentFilePolicy
impl RefUnwindSafe for EverythingIsStudentFilePolicy
impl Send for EverythingIsStudentFilePolicy
impl Sync for EverythingIsStudentFilePolicy
impl Unpin for EverythingIsStudentFilePolicy
impl UnwindSafe for EverythingIsStudentFilePolicy
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