Struct git_checks::checks::InvalidUtf8 [−][src]
pub struct InvalidUtf8;
A check which denies commits which modify files containing special characters.
Methods
impl InvalidUtf8[src]
impl InvalidUtf8pub fn new() -> Self[src]
pub fn new() -> SelfCreate 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 Debug for InvalidUtf8fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for InvalidUtf8[src]
impl Default for InvalidUtf8fn default() -> InvalidUtf8[src]
fn default() -> InvalidUtf8Returns the "default value" for a type. Read more
impl Clone for InvalidUtf8[src]
impl Clone for InvalidUtf8fn clone(&self) -> InvalidUtf8[src]
fn clone(&self) -> InvalidUtf8Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for InvalidUtf8[src]
impl Copy for InvalidUtf8impl ContentCheck for InvalidUtf8[src]
impl ContentCheck for InvalidUtf8fn name(&self) -> &str[src]
fn name(&self) -> &strThe name of the check.
fn check(&self, ctx: &CheckGitContext, content: &Content) -> Result<CheckResult>[src]
fn check(&self, ctx: &CheckGitContext, content: &Content) -> Result<CheckResult>Run the check.
Auto Trait Implementations
impl Send for InvalidUtf8
impl Send for InvalidUtf8impl Sync for InvalidUtf8
impl Sync for InvalidUtf8