pub struct Stage {
pub tree: Tree,
pub unreadable: BTreeMap<String, String>,
pub irregular: BTreeSet<String>,
}Expand description
One rev’s copies of a set of paths.
Fields§
§tree: TreePath -> UTF-8 content, for every requested regular file the rev has.
unreadable: BTreeMap<String, String>Paths the rev has as a regular file whose bytes could not be read, and
why. Absent is not unreadable: a path the rev does not have is simply
not in tree, and that is a fact the checks reason about. An unreadable
one is a fact they cannot reason about, and must not be mistaken for
absence.
irregular: BTreeSet<String>Paths the rev has as something other than a regular file — a symlink or a submodule. Their bytes are not source, and git’s guarantees stand.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stage
impl RefUnwindSafe for Stage
impl Send for Stage
impl Sync for Stage
impl Unpin for Stage
impl UnsafeUnpin for Stage
impl UnwindSafe for Stage
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more