Enum git_checks::impl_prelude::FileName
[−]
[src]
pub enum FileName { // some variants omitted }
A representation of filenames as given by Git.
Git supports filenames with control characters and other non-Unicode byte sequence which are quoted when listed in certain Git command outputs. This enumeration smooths over these differences and offers accessors to the file name in different representations.
Generally, the as_
methods should be preferred to pattern matching on this enumeration.
Methods
impl FileName
[src]
fn as_str(&self) -> &str
The file name as a str
.
fn as_path(&self) -> &Path
The file name as a Path
.
fn as_bytes(&self) -> &[u8]
The raw bytes of the file name.
Trait Implementations
impl Debug for FileName
[src]
impl Clone for FileName
[src]
fn clone(&self) -> FileName
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 Eq for FileName
[src]
impl Display for FileName
[src]
impl PartialEq for FileName
[src]
fn eq(&self, rhs: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.