pub struct ArtifactPath {
pub round: u32,
pub kind: ReviewerKind,
pub name: String,
}Fields§
§round: u32§kind: ReviewerKind§name: StringImplementations§
Source§impl ArtifactPath
impl ArtifactPath
pub fn new( round: u32, kind: ReviewerKind, name: impl Into<String>, ) -> Result<Self, PathError>
Sourcepub fn relative(&self) -> PathBuf
pub fn relative(&self) -> PathBuf
Path relative to the repo root: .review/round-N/<kind>-<name>.md.
pub fn absolute(&self, repo_root: &Path) -> PathBuf
Sourcepub fn parse_relative(rel: &Path) -> Result<Self, PathError>
pub fn parse_relative(rel: &Path) -> Result<Self, PathError>
Parse a path that is already relative to the repo root.
Anything that doesn’t match .review/round-N/<kind>-<name>.md is
rejected; verify must refuse to operate on stray files.
Trait Implementations§
Source§impl Clone for ArtifactPath
impl Clone for ArtifactPath
Source§fn clone(&self) -> ArtifactPath
fn clone(&self) -> ArtifactPath
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 ArtifactPath
impl Debug for ArtifactPath
Source§impl PartialEq for ArtifactPath
impl PartialEq for ArtifactPath
Source§fn eq(&self, other: &ArtifactPath) -> bool
fn eq(&self, other: &ArtifactPath) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ArtifactPath
impl StructuralPartialEq for ArtifactPath
Auto Trait Implementations§
impl Freeze for ArtifactPath
impl RefUnwindSafe for ArtifactPath
impl Send for ArtifactPath
impl Sync for ArtifactPath
impl Unpin for ArtifactPath
impl UnsafeUnpin for ArtifactPath
impl UnwindSafe for ArtifactPath
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