pub struct RevsetExpr(/* private fields */);Expand description
A pre-validated revset expression, for callers that accept revsets from
untrusted input (UIs, bots, agents) and want to fail early. Deliberately
minimal — jj’s revset 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 positional-revset
methods apply anyway. The dir-taking methods stay &str; this type is
optional up-front validation, not a required wrapper.
Implementations§
Trait Implementations§
Source§impl Clone for RevsetExpr
impl Clone for RevsetExpr
Source§fn clone(&self) -> RevsetExpr
fn clone(&self) -> RevsetExpr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RevsetExpr
impl Debug for RevsetExpr
Source§impl Display for RevsetExpr
impl Display for RevsetExpr
impl Eq for RevsetExpr
Source§impl Hash for RevsetExpr
impl Hash for RevsetExpr
Source§impl PartialEq for RevsetExpr
impl PartialEq for RevsetExpr
Source§fn eq(&self, other: &RevsetExpr) -> bool
fn eq(&self, other: &RevsetExpr) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RevsetExpr
Auto Trait Implementations§
impl Freeze for RevsetExpr
impl RefUnwindSafe for RevsetExpr
impl Send for RevsetExpr
impl Sync for RevsetExpr
impl Unpin for RevsetExpr
impl UnsafeUnpin for RevsetExpr
impl UnwindSafe for RevsetExpr
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