pub struct RevSpec(/* private fields */);Expand description
A pre-validated revision/range expression (HEAD~2, main..feature).
Deliberately minimal — git’s revision grammar is too rich to validate
here — it only guarantees the expression is non-empty and cannot be parsed
as a flag (no leading -), matching the internal guard the dir-taking
methods apply anyway. Optional up-front validation for untrusted input.
Implementations§
Trait Implementations§
impl Eq for RevSpec
impl StructuralPartialEq for RevSpec
Auto Trait Implementations§
impl Freeze for RevSpec
impl RefUnwindSafe for RevSpec
impl Send for RevSpec
impl Sync for RevSpec
impl Unpin for RevSpec
impl UnsafeUnpin for RevSpec
impl UnwindSafe for RevSpec
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