pub struct Commit { /* private fields */ }
Implementations§
Source§impl Commit
impl Commit
pub fn new(store: Arc<StoreWrapper>, id: CommitId, data: Arc<Commit>) -> Self
pub fn store(&self) -> &Arc<StoreWrapper>
pub fn id(&self) -> &CommitId
pub fn parent_ids(&self) -> Vec<CommitId>
pub fn parents(&self) -> Vec<Commit>
pub fn predecessor_ids(&self) -> Vec<CommitId>
pub fn predecessors(&self) -> Vec<Commit>
pub fn tree(&self) -> Tree
pub fn change_id(&self) -> &ChangeId
pub fn store_commit(&self) -> &Commit
pub fn is_open(&self) -> bool
pub fn is_pruned(&self) -> bool
pub fn is_empty(&self) -> bool
pub fn description(&self) -> &str
pub fn committer(&self) -> &Signature
Trait Implementations§
Source§impl Ord for Commit
impl Ord for Commit
Source§impl PartialOrd for Commit
impl PartialOrd for Commit
impl Eq for Commit
Auto Trait Implementations§
impl Freeze for Commit
impl !RefUnwindSafe for Commit
impl Send for Commit
impl Sync for Commit
impl Unpin for Commit
impl !UnwindSafe for Commit
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