Struct warmy::key::FSKey [−][src]
pub struct FSKey(_);
Filesystem key.
Methods
impl FSKey
[src]
impl FSKey
pub fn new<P>(path: P) -> Self where
P: AsRef<Path>,
[src]
pub fn new<P>(path: P) -> Self where
P: AsRef<Path>,
Create a new FSKey
by providing a VFS path.
The VFS path should start with a leading "/"
(yet it’s not enforced). This VFS path will
get transformed by a Store
when used by inspecting the Store
’s root.
pub fn as_path(&self) -> &Path
[src]
pub fn as_path(&self) -> &Path
Get the underlying path.
Trait Implementations
impl Clone for FSKey
[src]
impl Clone for FSKey
fn clone(&self) -> FSKey
[src]
fn clone(&self) -> FSKey
Returns 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 Debug for FSKey
[src]
impl Debug for FSKey
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for FSKey
[src]
impl Eq for FSKey
impl Hash for FSKey
[src]
impl Hash for FSKey
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for FSKey
[src]
impl PartialEq for FSKey
fn eq(&self, other: &FSKey) -> bool
[src]
fn eq(&self, other: &FSKey) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &FSKey) -> bool
[src]
fn ne(&self, other: &FSKey) -> bool
This method tests for !=
.
impl From<FSKey> for DepKey
[src]
impl From<FSKey> for DepKey
impl Key for FSKey
[src]
impl Key for FSKey
fn prepare_key(self, root: &Path) -> Self
[src]
fn prepare_key(self, root: &Path) -> Self
Prepare a key. Read more