Struct git_checks::checks::InvalidUtf8
[−]
[src]
pub struct InvalidUtf8;
A check which denies commits which modify files containing special characters.
Methods
impl InvalidUtf8[src]
fn new() -> Self
Create a check which rejects file contents which are invalid utf-8.
Files may be marked as binary by unsetting the text attribute.
Trait Implementations
impl Debug for InvalidUtf8[src]
impl Default for InvalidUtf8[src]
fn default() -> InvalidUtf8
Returns the "default value" for a type. Read more
impl Clone for InvalidUtf8[src]
fn clone(&self) -> InvalidUtf8
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Copy for InvalidUtf8[src]
impl ContentCheck for InvalidUtf8[src]
fn name(&self) -> &str
The name of the check.
fn check(&self, ctx: &CheckGitContext, content: &Content) -> Result<CheckResult>
Run the check.