pub struct View {
pub head_ids: HashSet<CommitId>,
pub local_branches: BTreeMap<String, RefTarget>,
pub tags: BTreeMap<String, RefTarget>,
pub remote_views: BTreeMap<String, RemoteView>,
pub git_refs: BTreeMap<String, RefTarget>,
pub git_head: RefTarget,
pub wc_commit_ids: 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
local_branches: BTreeMap<String, RefTarget>
§remote_views: BTreeMap<String, RemoteView>
§git_refs: BTreeMap<String, RefTarget>
§git_head: RefTarget
The commit the Git HEAD points to.
wc_commit_ids: HashMap<WorkspaceId, CommitId>
Trait Implementations§
source§impl ContentHash for View
impl ContentHash for View
source§impl PartialEq for View
impl PartialEq for View
impl Eq 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§
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more