Struct jujutsu_lib::repo::MutableRepo[][src]

pub struct MutableRepo { /* fields omitted */ }

Implementations

impl MutableRepo[src]

pub fn new(
    base_repo: Arc<ReadonlyRepo>,
    index: Arc<ReadonlyIndex>,
    view: &ReadonlyView,
    evolution: Option<&Arc<ReadonlyEvolution>>
) -> Arc<MutableRepo>
[src]

pub fn as_repo_ref(&self) -> RepoRef<'_>[src]

pub fn base_repo(&self) -> &Arc<ReadonlyRepo>[src]

pub fn store(&self) -> &Arc<StoreWrapper>[src]

pub fn op_store(&self) -> &Arc<dyn OpStore>[src]

pub fn index(&self) -> &MutableIndex[src]

pub fn view(&self) -> &MutableView[src]

pub fn consume(self) -> (MutableIndex, MutableView, Option<MutableEvolution>)[src]

pub fn evolution(&self) -> &MutableEvolution[src]

pub fn evolution_mut(&mut self) -> Option<&mut MutableEvolution>[src]

pub fn invalidate_evolution(&mut self)[src]

pub fn write_commit(&mut self, commit: Commit) -> Commit[src]

pub fn set_checkout(&mut self, id: CommitId)[src]

pub fn check_out(&mut self, settings: &UserSettings, commit: &Commit) -> Commit[src]

pub fn heads(&self) -> &HashSet<CommitId>[src]

pub fn add_head(&mut self, head: &Commit)[src]

pub fn remove_head(&mut self, head: &Commit)[src]

pub fn add_public_head(&mut self, head: &Commit)[src]

pub fn remove_public_head(&mut self, head: &Commit)[src]

pub fn insert_git_ref(&mut self, name: String, commit_id: CommitId)[src]

pub fn remove_git_ref(&mut self, name: &str)[src]

pub fn set_view(&mut self, data: View)[src]

pub fn merge(&mut self, base_repo: &ReadonlyRepo, other_repo: &ReadonlyRepo)[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V