Struct jujutsu_lib::commit::Commit
source · pub struct Commit { /* private fields */ }
Implementations§
source§impl Commit
impl Commit
pub fn new(store: Arc<Store>, id: CommitId, data: Arc<Commit>) -> Self
pub fn store(&self) -> &Arc<Store>
pub fn id(&self) -> &CommitId
pub fn parent_ids(&self) -> &[CommitId]
pub fn parents(&self) -> Vec<Commit>
pub fn predecessor_ids(&self) -> &[CommitId]
pub fn predecessors(&self) -> Vec<Commit>
pub fn tree(&self) -> Tree
pub fn tree_id(&self) -> &TreeId
pub fn change_id(&self) -> &ChangeId
pub fn store_commit(&self) -> &Commit
pub fn description(&self) -> &str
pub fn committer(&self) -> &Signature
Trait Implementations§
source§impl Ord for Commit
impl Ord for Commit
source§impl PartialEq<Commit> for Commit
impl PartialEq<Commit> for Commit
source§impl PartialOrd<Commit> for Commit
impl PartialOrd<Commit> for Commit
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Commit
Auto Trait Implementations§
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