Enum warmy::key::DepKey [−][src]
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]
impl Clone for DepKey
fn clone(&self) -> DepKey
[src]
fn clone(&self) -> DepKey
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 DepKey
[src]
impl Debug for DepKey
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 DepKey
[src]
impl Eq for DepKey
impl Hash for DepKey
[src]
impl Hash for DepKey
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 DepKey
[src]
impl PartialEq for DepKey
fn eq(&self, other: &DepKey) -> bool
[src]
fn eq(&self, other: &DepKey) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &DepKey) -> bool
[src]
fn ne(&self, other: &DepKey) -> bool
This method tests for !=
.
impl From<FSKey> for DepKey
[src]
impl From<FSKey> for DepKey
impl From<LogicalKey> for DepKey
[src]
impl From<LogicalKey> for DepKey
fn from(key: LogicalKey) -> Self
[src]
fn from(key: LogicalKey) -> Self
Performs the conversion.
impl Key for DepKey
[src]
impl Key for DepKey
fn prepare_key(self, root: &Path) -> Self
[src]
fn prepare_key(self, root: &Path) -> Self
Prepare a key. Read more