pub enum DependencyKind {
SourceFile,
Asset,
Bibliography,
Label,
}Expand description
The category of a build dependency.
This is the coarse axis: “what kind of thing changed”: independent of the
concrete identity carried by DependencyId. Obtain it with
DependencyId::kind.
§Examples
use mos_cache::{DependencyId, DependencyKind};
assert_eq!(DependencyId::label("eq-euler").kind(), DependencyKind::Label);
assert_eq!(DependencyKind::Bibliography.as_str(), "bibliography");Variants§
SourceFile
A .mos source file.
Asset
A referenced asset, such as an image.
Bibliography
A bibliography input, such as a .bib file.
Label
A resolved label that references resolve against.
Implementations§
Source§impl DependencyKind
impl DependencyKind
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
The stable lowercase tag used in DependencyId’s Display form.
These tags are part of the debuggable identity and must stay stable.
§Examples
use mos_cache::DependencyKind;
assert_eq!(DependencyKind::SourceFile.as_str(), "source");
assert_eq!(DependencyKind::Label.as_str(), "label");Trait Implementations§
Source§impl Clone for DependencyKind
impl Clone for DependencyKind
Source§fn clone(&self) -> DependencyKind
fn clone(&self) -> DependencyKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DependencyKind
impl Debug for DependencyKind
Source§impl Display for DependencyKind
impl Display for DependencyKind
Source§impl Hash for DependencyKind
impl Hash for DependencyKind
Source§impl Ord for DependencyKind
impl Ord for DependencyKind
Source§fn cmp(&self, other: &DependencyKind) -> Ordering
fn cmp(&self, other: &DependencyKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DependencyKind
impl PartialEq for DependencyKind
Source§impl PartialOrd for DependencyKind
impl PartialOrd for DependencyKind
impl Copy for DependencyKind
impl Eq for DependencyKind
impl StructuralPartialEq for DependencyKind
Auto Trait Implementations§
impl Freeze for DependencyKind
impl RefUnwindSafe for DependencyKind
impl Send for DependencyKind
impl Sync for DependencyKind
impl Unpin for DependencyKind
impl UnsafeUnpin for DependencyKind
impl UnwindSafe for DependencyKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more