Struct jujutsu_lib::commit::Commit
source · [−]pub struct Commit { /* private fields */ }Implementations
sourceimpl 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) -> Vec<CommitId>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn parents(&self) -> Vec<Commit>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn predecessor_ids(&self) -> Vec<CommitId>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn predecessors(&self) -> Vec<Commit>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
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 is_open(&self) -> bool
pub fn is_empty(&self) -> bool
pub fn description(&self) -> &str
pub fn committer(&self) -> &Signature
Trait Implementations
sourceimpl Ord for Commit
impl Ord for Commit
sourceimpl PartialOrd<Commit> for Commit
impl PartialOrd<Commit> for Commit
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
impl 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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more