Struct duplicate_kriller::FileContent
[−]
[src]
pub struct FileContent { /* fields omitted */ }
File content is efficiently compared using this struct's PartialOrd implementation
Methods
impl FileContent
[src]
fn from_path<P: Into<PathBuf>>(path: P) -> Result<Self, Error>
fn new<P: Into<PathBuf>>(path: P, metadata: Metadata) -> Self
Trait Implementations
impl Debug for FileContent
[src]
impl Eq for FileContent
[src]
impl PartialEq for FileContent
[src]
fn eq(&self, other: &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 !=
.
impl Ord for FileContent
[src]
fn cmp(&self, other: &Self) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl PartialOrd for FileContent
[src]
That does the bulk of hasing and comparisons
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more