Struct jujutsu_lib::working_copy::TreeState
source · [−]pub struct TreeState { /* private fields */ }Implementations
sourceimpl TreeState
impl TreeState
pub fn current_tree_id(&self) -> &TreeId
pub fn file_states(&self) -> &BTreeMap<RepoPath, FileState>
pub fn init(
store: Arc<Store>,
working_copy_path: PathBuf,
state_path: PathBuf
) -> TreeState
pub fn load(
store: Arc<Store>,
working_copy_path: PathBuf,
state_path: PathBuf
) -> TreeState
pub fn write_tree(&mut self, base_ignores: Arc<GitIgnoreFile>) -> TreeId
pub fn check_out(
&mut self,
new_tree: &Tree
) -> Result<CheckoutStats, CheckoutError>
pub fn reset(&mut self, new_tree: &Tree) -> Result<(), ResetError>
Auto Trait Implementations
impl !RefUnwindSafe for TreeState
impl Send for TreeState
impl Sync for TreeState
impl Unpin for TreeState
impl !UnwindSafe for TreeState
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