Struct warmy::key::FSKey
[−]
[src]
pub struct FSKey(_);
Filesystem key.
Methods
impl FSKey
[src]
pub fn new<P>(path: P) -> Self where
P: AsRef<Path>,
[src]
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]
Get the underlying path.
Trait Implementations
impl Clone for FSKey
[src]
fn clone(&self) -> FSKey
[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 FSKey
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for FSKey
[src]
impl Hash for FSKey
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
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]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for FSKey
[src]
fn eq(&self, __arg_0: &FSKey) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FSKey) -> bool
[src]
This method tests for !=
.
impl From<FSKey> for DepKey
[src]
impl Key for FSKey
[src]
fn prepare_key(self, root: &Path) -> Self
[src]
Prepare a key. Read more