Enum warmy::key::DepKey
[−]
[src]
pub enum DepKey { Path(PathBuf), Logical(String), }
A dependency key, used to express dependency.
Variants
Path(PathBuf)
A key to a resource living on the filesystem – akin to FSKey
.
Logical(String)
A key to a resource living in memory or computed on the fly – akin to LogicalKey
.
Trait Implementations
impl Clone for DepKey
[src]
fn clone(&self) -> DepKey
[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 DepKey
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for DepKey
[src]
impl Hash for DepKey
[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 DepKey
[src]
fn eq(&self, __arg_0: &DepKey) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DepKey) -> bool
[src]
This method tests for !=
.
impl From<FSKey> for DepKey
[src]
impl From<LogicalKey> for DepKey
[src]
fn from(key: LogicalKey) -> Self
[src]
Performs the conversion.
impl Key for DepKey
[src]
fn prepare_key(self, root: &Path) -> Self
[src]
Prepare a key. Read more