pub struct SourceTree {
pub root: PathBuf,
pub entries: Vec<Entry>,
}Expand description
The files of a source root in sorted path order, without .git, target (at any depth)
and the excluded paths.
Fields§
§root: PathBuf§entries: Vec<Entry>Implementations§
Source§impl SourceTree
impl SourceTree
Sourcepub fn walk(root: &Path, exclude: &[PathBuf]) -> Result<SourceTree>
pub fn walk(root: &Path, exclude: &[PathBuf]) -> Result<SourceTree>
Walks root, skipping .git and target at any depth and every absolute path in
exclude (the temp dir when nested; the root Dockerfile for an archive). Entries are
sorted by path (component-wise); symbolic links are recorded as links and not followed
(as tar and gcloud’s upload do); other special files are skipped.
Trait Implementations§
Source§impl Clone for SourceTree
impl Clone for SourceTree
Source§impl Debug for SourceTree
impl Debug for SourceTree
Source§impl Default for SourceTree
impl Default for SourceTree
impl Eq for SourceTree
Source§impl PartialEq for SourceTree
impl PartialEq for SourceTree
impl StructuralPartialEq for SourceTree
Auto Trait Implementations§
impl Forget for SourceTree
impl Freeze for SourceTree
impl Move for SourceTree
impl RefUnwindSafe for SourceTree
impl Send for SourceTree
impl Sync for SourceTree
impl Unpin for SourceTree
impl UnsafeUnpin for SourceTree
impl UnwindSafe for SourceTree
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.