Struct conserve::Apath
[−]
[src]
pub struct Apath(_);
An ordered archive path.
The ordering groups all the direct parents of a directory together, followed by all the subdirectories.
Equal strings are equivalent to equal apaths, but the ordering is not the same as string ordering.
Methods
impl Apath
[src]
fn from_string(s: &str) -> Apath
[src]
fn to_string(&self) -> &String
[src]
fn is_valid(a: &str) -> bool
[src]
True if this string is a well-formed apath.
Rust strings are by contract always valid UTF-8, so to meet that requirement
for apaths it's enough to use a checked conversion from bytes or an OSString
.
Trait Implementations
impl Clone for Apath
[src]
fn clone(&self) -> Apath
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Apath
[src]
impl Eq for Apath
[src]
impl PartialEq for Apath
[src]
fn eq(&self, __arg_0: &Apath) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Apath) -> bool
[src]
This method tests for !=
.
impl Display for Apath
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl PartialEq<str> for Apath
[src]
Compare for equality an Apath to a str.
fn eq(&self, other: &str) -> bool
[src]
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[src]
This method tests for !=
.
impl Ord for Apath
[src]
Compare two apaths.
The ordering is not the same as a simple string comparison, although equal strings imply equal apaths.
fn cmp(&self, b: &Apath) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl PartialOrd for Apath
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
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[src]
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[src]
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[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more