pub struct RepositorySnapshot {
pub root: PathBuf,
pub files: Vec<FileSnapshot>,
pub manifests: Vec<CargoManifest>,
}Fields§
§root: PathBuf§files: Vec<FileSnapshot>§manifests: Vec<CargoManifest>Implementations§
Source§impl RepositorySnapshot
impl RepositorySnapshot
pub fn collect(root: &Path) -> Result<Self, String>
pub fn rust_files(&self) -> impl Iterator<Item = &FileSnapshot>
Trait Implementations§
Source§impl Clone for RepositorySnapshot
impl Clone for RepositorySnapshot
Source§fn clone(&self) -> RepositorySnapshot
fn clone(&self) -> RepositorySnapshot
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 moreAuto Trait Implementations§
impl Freeze for RepositorySnapshot
impl RefUnwindSafe for RepositorySnapshot
impl Send for RepositorySnapshot
impl Sync for RepositorySnapshot
impl Unpin for RepositorySnapshot
impl UnsafeUnpin for RepositorySnapshot
impl UnwindSafe for RepositorySnapshot
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