Enum cli::types::DependencyIdentifier
source · [−]pub enum DependencyIdentifier {
Definition(TaskIdentifier),
Name(String),
}
Expand description
A dependency, defined either as a string or as a Dependency object
Variants
Definition(TaskIdentifier)
A full dependency definion (potentially in a different file)
Name(String)
A string dependency definition (its name in the current file)
Implementations
Trait Implementations
sourceimpl Clone for DependencyIdentifier
impl Clone for DependencyIdentifier
sourcefn clone(&self) -> DependencyIdentifier
fn clone(&self) -> DependencyIdentifier
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DependencyIdentifier
impl Debug for DependencyIdentifier
sourceimpl<'de> Deserialize<'de> for DependencyIdentifier
impl<'de> Deserialize<'de> for DependencyIdentifier
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<&str> for DependencyIdentifier
impl From<&str> for DependencyIdentifier
sourceimpl Into<TaskIdentifier> for DependencyIdentifier
impl Into<TaskIdentifier> for DependencyIdentifier
sourcefn into(self) -> TaskIdentifier
fn into(self) -> TaskIdentifier
Converts this type into the (usually inferred) input type.
sourceimpl PartialEq<DependencyIdentifier> for DependencyIdentifier
impl PartialEq<DependencyIdentifier> for DependencyIdentifier
sourcefn eq(&self, other: &DependencyIdentifier) -> bool
fn eq(&self, other: &DependencyIdentifier) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for DependencyIdentifier
impl Serialize for DependencyIdentifier
impl Eq for DependencyIdentifier
impl StructuralEq for DependencyIdentifier
impl StructuralPartialEq for DependencyIdentifier
Auto Trait Implementations
impl RefUnwindSafe for DependencyIdentifier
impl Send for DependencyIdentifier
impl Sync for DependencyIdentifier
impl Unpin for DependencyIdentifier
impl UnwindSafe for DependencyIdentifier
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.