pub struct Python3StudentFilePolicy { /* private fields */ }Trait Implementations§
Source§impl StudentFilePolicy for Python3StudentFilePolicy
impl StudentFilePolicy for Python3StudentFilePolicy
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.
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 Python3StudentFilePolicy
impl RefUnwindSafe for Python3StudentFilePolicy
impl Send for Python3StudentFilePolicy
impl Sync for Python3StudentFilePolicy
impl Unpin for Python3StudentFilePolicy
impl UnwindSafe for Python3StudentFilePolicy
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