pub struct JjFileset(/* private fields */);Expand description
An exact-path jj fileset (file:"<path>"), so path metacharacters like (,
), |, * are treated literally rather than as fileset operators.
Build it with JjFileset::path; the path is repo-root-relative.
Implementations§
Source§impl JjFileset
impl JjFileset
Sourcepub fn path(path: impl AsRef<str>) -> Self
pub fn path(path: impl AsRef<str>) -> Self
Wrap a repo-relative path as an exact-path fileset. Backslash separators
are normalised to / first — jj filesets are forward-slash and
repo-root-relative, so a Windows caller’s src\a.rs would otherwise become
a literal-backslash filename that matches nothing — then " is escaped for
the file:"…" string literal.
Trait Implementations§
impl Eq for JjFileset
impl StructuralPartialEq for JjFileset
Auto Trait Implementations§
impl Freeze for JjFileset
impl RefUnwindSafe for JjFileset
impl Send for JjFileset
impl Sync for JjFileset
impl Unpin for JjFileset
impl UnsafeUnpin for JjFileset
impl UnwindSafe for JjFileset
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