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