pub(crate) struct RepoFilesV1PathErrors {
pub(crate) absolute: HashSet<PathBuf>,
pub(crate) without_parent: HashSet<PathBuf>,
pub(crate) duplicate: HashSet<PathBuf>,
}Expand description
A collection of paths that are invalid in the context of a RepoFilesV1.
A RepoFilesV1 must not contain duplicate paths or (non top-level) paths that do not have a
parent in the same set of paths.
Fields§
§absolute: HashSet<PathBuf>§without_parent: HashSet<PathBuf>§duplicate: HashSet<PathBuf>Implementations§
Source§impl RepoFilesV1PathErrors
impl RepoFilesV1PathErrors
Sourcepub(crate) fn new() -> Self
pub(crate) fn new() -> Self
Creates a new RepoFilesV1PathErrors.
Sourcepub(crate) fn add_absolute(&mut self, path: PathBuf) -> bool
pub(crate) fn add_absolute(&mut self, path: PathBuf) -> bool
Adds a new absolute path.
Sourcepub(crate) fn add_without_parent(&mut self, path: PathBuf) -> bool
pub(crate) fn add_without_parent(&mut self, path: PathBuf) -> bool
Adds a new (non top-level) path that does not have a parent.
Sourcepub(crate) fn add_duplicate(&mut self, path: PathBuf) -> bool
pub(crate) fn add_duplicate(&mut self, path: PathBuf) -> bool
Adds a new duplicate path.
Trait Implementations§
Source§impl Clone for RepoFilesV1PathErrors
impl Clone for RepoFilesV1PathErrors
Source§fn clone(&self) -> RepoFilesV1PathErrors
fn clone(&self) -> RepoFilesV1PathErrors
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 RepoFilesV1PathErrors
impl Debug for RepoFilesV1PathErrors
Source§impl Display for RepoFilesV1PathErrors
impl Display for RepoFilesV1PathErrors
Source§impl PartialEq for RepoFilesV1PathErrors
impl PartialEq for RepoFilesV1PathErrors
impl Eq for RepoFilesV1PathErrors
impl StructuralPartialEq for RepoFilesV1PathErrors
Auto Trait Implementations§
impl Freeze for RepoFilesV1PathErrors
impl RefUnwindSafe for RepoFilesV1PathErrors
impl Send for RepoFilesV1PathErrors
impl Sync for RepoFilesV1PathErrors
impl Unpin for RepoFilesV1PathErrors
impl UnwindSafe for RepoFilesV1PathErrors
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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