Struct xvc_pipeline::deps::line_items::LineItemsDep
source · pub struct LineItemsDep {
pub path: XvcPath,
pub begin: usize,
pub end: usize,
pub xvc_metadata: Option<XvcMetadata>,
pub lines: Vec<String>,
}Fields§
§path: XvcPathPath of the file in the workspace
begin: usizeThe beginning of range
end: usizeThe end of range
xvc_metadata: Option<XvcMetadata>§lines: Vec<String>Implementations§
source§impl LineItemsDep
impl LineItemsDep
pub fn new(path: XvcPath, begin: usize, end: usize) -> Self
pub fn update_lines(self, xvc_root: &XvcRoot) -> Self
pub fn update_metadata(self, xvc_metadata: Option<XvcMetadata>) -> Self
Trait Implementations§
source§impl Clone for LineItemsDep
impl Clone for LineItemsDep
source§fn clone(&self) -> LineItemsDep
fn clone(&self) -> LineItemsDep
Returns a copy 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 LineItemsDep
impl Debug for LineItemsDep
source§impl<'de> Deserialize<'de> for LineItemsDep
impl<'de> Deserialize<'de> for LineItemsDep
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 LineItemsDep
impl Diffable for LineItemsDep
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§fn diff(
record: Option<&LineItemsDep>,
actual: Option<&Self::Item>
) -> Diff<Self::Item>
fn diff( record: Option<&LineItemsDep>, actual: Option<&Self::Item> ) -> Diff<Self::Item>
⚠️ Call actual.update_metadata and actual.update_lines before calling this. ⚠️
§type Item = LineItemsDep
type Item = LineItemsDep
The type of the entity to compare.
source§impl Into<XvcDependency> for LineItemsDep
impl Into<XvcDependency> for LineItemsDep
source§fn into(self) -> XvcDependency
fn into(self) -> XvcDependency
Converts this type into the (usually inferred) input type.
source§impl Ord for LineItemsDep
impl Ord for LineItemsDep
source§fn cmp(&self, other: &LineItemsDep) -> Ordering
fn cmp(&self, other: &LineItemsDep) -> 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<LineItemsDep> for LineItemsDep
impl PartialEq<LineItemsDep> for LineItemsDep
source§fn eq(&self, other: &LineItemsDep) -> bool
fn eq(&self, other: &LineItemsDep) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<LineItemsDep> for LineItemsDep
impl PartialOrd<LineItemsDep> for LineItemsDep
source§fn partial_cmp(&self, other: &LineItemsDep) -> Option<Ordering>
fn partial_cmp(&self, other: &LineItemsDep) -> Option<Ordering>
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 Serialize for LineItemsDep
impl Serialize for LineItemsDep
source§impl Storable for LineItemsDep
impl Storable for LineItemsDep
source§fn type_description() -> String
fn type_description() -> String
A string representation for the type. Read more
impl Eq for LineItemsDep
impl StructuralEq for LineItemsDep
impl StructuralPartialEq for LineItemsDep
Auto Trait Implementations§
impl RefUnwindSafe for LineItemsDep
impl Send for LineItemsDep
impl Sync for LineItemsDep
impl Unpin for LineItemsDep
impl UnwindSafe for LineItemsDep
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.