pub struct Context {
pub store: MetadataStore,
pub current_branch: Option<String>,
}Expand description
Where a newgit command is standing: which store owns the metadata, and — when inside a workspace — which branch instance the cwd belongs to.
Fields§
§store: MetadataStore§current_branch: Option<String>Trait Implementations§
impl Eq for Context
impl StructuralPartialEq for Context
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
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