pub struct BlameTarget {
pub blob: ContentHash,
pub line_count: u32,
pub state_id: StateId,
pub path: String,
}Expand description
Prepared target file a persisted frontier may attribute.
Blob and line count alone are not a job: two paths or states can share the same bytes. The bound state and normalized path keep those jobs apart.
Fields§
§blob: ContentHash§line_count: u32§state_id: StateId§path: StringImplementations§
Source§impl BlameTarget
impl BlameTarget
Sourcepub fn bind(
state_id: StateId,
path: &Path,
blob: ContentHash,
line_count: u32,
) -> Result<Self, BlameSliceError>
pub fn bind( state_id: StateId, path: &Path, blob: ContentHash, line_count: u32, ) -> Result<Self, BlameSliceError>
Bind a prepared job. The path is stored in lookup-normalized form.
pub fn matches_path(&self, path: &Path) -> Result<bool, BlameSliceError>
Trait Implementations§
Source§impl Clone for BlameTarget
impl Clone for BlameTarget
Source§fn clone(&self) -> BlameTarget
fn clone(&self) -> BlameTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BlameTarget
impl Debug for BlameTarget
Source§impl<'de> Deserialize<'de> for BlameTarget
impl<'de> Deserialize<'de> for BlameTarget
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
impl Eq for BlameTarget
Source§impl PartialEq for BlameTarget
impl PartialEq for BlameTarget
Source§impl Serialize for BlameTarget
impl Serialize for BlameTarget
impl StructuralPartialEq for BlameTarget
Auto Trait Implementations§
impl Freeze for BlameTarget
impl RefUnwindSafe for BlameTarget
impl Send for BlameTarget
impl Sync for BlameTarget
impl Unpin for BlameTarget
impl UnsafeUnpin for BlameTarget
impl UnwindSafe for BlameTarget
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