Struct RevisionRange
pub struct RevisionRange { /* private fields */ }Expand description
A revision range such as A..B or A...B.
Implementations§
§impl RevisionRange
impl RevisionRange
pub fn new(
left: impl AsRef<str>,
right: impl AsRef<str>,
kind: RevisionRangeKind,
) -> Result<RevisionRange, RevisionParseError>
pub fn new( left: impl AsRef<str>, right: impl AsRef<str>, kind: RevisionRangeKind, ) -> Result<RevisionRange, RevisionParseError>
Creates a revision range.
§Errors
Returns RevisionParseError::EmptyRangeSide when either side is empty.
pub const fn left(&self) -> &GitRevision
pub const fn left(&self) -> &GitRevision
Returns the left side.
pub const fn right(&self) -> &GitRevision
pub const fn right(&self) -> &GitRevision
Returns the right side.
pub const fn kind(&self) -> RevisionRangeKind
pub const fn kind(&self) -> RevisionRangeKind
Returns the range kind.
Trait Implementations§
§impl Clone for RevisionRange
impl Clone for RevisionRange
§fn clone(&self) -> RevisionRange
fn clone(&self) -> RevisionRange
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for RevisionRange
impl Debug for RevisionRange
§impl Display for RevisionRange
impl Display for RevisionRange
§impl Hash for RevisionRange
impl Hash for RevisionRange
§impl Ord for RevisionRange
impl Ord for RevisionRange
§impl PartialEq for RevisionRange
impl PartialEq for RevisionRange
§impl PartialOrd for RevisionRange
impl PartialOrd for RevisionRange
impl Eq for RevisionRange
impl StructuralPartialEq for RevisionRange
Auto Trait Implementations§
impl Freeze for RevisionRange
impl RefUnwindSafe for RevisionRange
impl Send for RevisionRange
impl Sync for RevisionRange
impl Unpin for RevisionRange
impl UnsafeUnpin for RevisionRange
impl UnwindSafe for RevisionRange
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