Struct jujutsu_lib::op_store::View
source · [−]pub struct View {
pub head_ids: HashSet<CommitId>,
pub public_head_ids: HashSet<CommitId>,
pub branches: BTreeMap<String, BranchTarget>,
pub tags: BTreeMap<String, RefTarget>,
pub git_refs: BTreeMap<String, RefTarget>,
pub git_head: Option<CommitId>,
pub checkouts: HashMap<WorkspaceId, CommitId>,
}Expand description
Represents the way the repo looks at a given time, just like how a Tree object represents how the file system looks at a given time.
Fields
head_ids: HashSet<CommitId>All head commits
public_head_ids: HashSet<CommitId>Heads of the set of public commits.
branches: BTreeMap<String, BranchTarget>git_refs: BTreeMap<String, RefTarget>git_head: Option<CommitId>The commit the Git HEAD points to.
checkouts: HashMap<WorkspaceId, CommitId>Trait Implementations
impl Eq for View
impl StructuralEq for View
impl StructuralPartialEq for View
Auto Trait Implementations
impl RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnwindSafe for View
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more