pub struct Dependency {
pub name: PathBuf,
pub hash: String,
}Expand description
Dependency of Target that determine if Target should be rebuilded
Fields§
§name: PathBuf§hash: StringImplementations§
Source§impl Dependency
impl Dependency
Sourcepub fn compute_hash(&self) -> String
pub fn compute_hash(&self) -> String
Computes hash from file pointed by name
Sourcepub fn update_hash(&mut self)
pub fn update_hash(&mut self)
Sets hash as hash computed from file pointed by name
Sourcepub fn needs_update(&self) -> bool
pub fn needs_update(&self) -> bool
Dependency needs an update when cached hash is different then hash
of file pointed by name
Trait Implementations§
Source§impl Clone for Dependency
impl Clone for Dependency
Source§fn clone(&self) -> Dependency
fn clone(&self) -> Dependency
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 Dependency
impl Debug for Dependency
Source§impl<'de> Deserialize<'de> for Dependency
impl<'de> Deserialize<'de> for Dependency
Source§fn 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
Auto Trait Implementations§
impl Freeze for Dependency
impl RefUnwindSafe for Dependency
impl Send for Dependency
impl Sync for Dependency
impl Unpin for Dependency
impl UnwindSafe for Dependency
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