Struct xvc_pipeline::deps::lines::LinesDep
source · pub struct LinesDep {
pub path: XvcPath,
pub begin: usize,
pub end: usize,
pub xvc_metadata: Option<XvcMetadata>,
pub digest: Option<ContentDigest>,
}Fields§
§path: XvcPathPath of the file in the workspace
begin: usizeThe beginning of range
end: usizeThe end of range
xvc_metadata: Option<XvcMetadata>§digest: Option<ContentDigest>Implementations§
source§impl LinesDep
impl LinesDep
pub fn new(path: XvcPath, begin: usize, end: usize) -> Self
pub fn update_digest(self, xvc_root: &XvcRoot, algorithm: HashAlgorithm) -> Self
pub fn update_metadata(self, xvc_metadata: Option<XvcMetadata>) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for LinesDep
impl<'de> Deserialize<'de> for LinesDep
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
source§impl Diffable for LinesDep
impl Diffable for LinesDep
source§fn diff_superficial(
record: &Self::Item,
actual: &Self::Item
) -> Diff<Self::Item>
fn diff_superficial( record: &Self::Item, actual: &Self::Item ) -> Diff<Self::Item>
⚠️ Call actual.update_metadata before calling this. ⚠️
source§fn diff_thorough(record: &Self::Item, actual: &Self::Item) -> Diff<Self::Item>
fn diff_thorough(record: &Self::Item, actual: &Self::Item) -> Diff<Self::Item>
⚠️ Call actual.update_lines before calling this. ⚠️
source§impl Into<XvcDependency> for LinesDep
impl Into<XvcDependency> for LinesDep
source§fn into(self) -> XvcDependency
fn into(self) -> XvcDependency
Converts this type into the (usually inferred) input type.
source§impl Ord for LinesDep
impl Ord for LinesDep
source§impl PartialEq<LinesDep> for LinesDep
impl PartialEq<LinesDep> for LinesDep
source§impl PartialOrd<LinesDep> for LinesDep
impl PartialOrd<LinesDep> for LinesDep
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Storable for LinesDep
impl Storable for LinesDep
source§fn type_description() -> String
fn type_description() -> String
A string representation for the type. Read more
impl Eq for LinesDep
impl StructuralEq for LinesDep
impl StructuralPartialEq for LinesDep
Auto Trait Implementations§
impl RefUnwindSafe for LinesDep
impl Send for LinesDep
impl Sync for LinesDep
impl Unpin for LinesDep
impl UnwindSafe for LinesDep
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.