pub struct ReadonlyView { /* private fields */ }Implementations§
Source§impl ReadonlyView
impl ReadonlyView
pub fn init(store: Arc<StoreWrapper>, path: PathBuf, checkout: CommitId) -> Self
pub fn load(store: Arc<StoreWrapper>, path: PathBuf) -> Self
pub fn reload(&mut self) -> OperationId
pub fn reload_at(&mut self, operation: &Operation)
pub fn start_modification(&self) -> MutableView
Trait Implementations§
Source§impl View for ReadonlyView
impl View for ReadonlyView
fn checkout(&self) -> &CommitId
fn heads<'a>(&'a self) -> Box<dyn Iterator<Item = &'a CommitId> + 'a>
fn op_store(&self) -> Arc<dyn OpStore>
fn base_op_head_id(&self) -> &OperationId
fn get_operation(&self, id: &OperationId) -> OpStoreResult<Operation>
fn base_op_head(&self) -> Operation
Auto Trait Implementations§
impl Freeze for ReadonlyView
impl !RefUnwindSafe for ReadonlyView
impl Send for ReadonlyView
impl Sync for ReadonlyView
impl Unpin for ReadonlyView
impl !UnwindSafe for ReadonlyView
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