pub struct RuleMatch {
pub relative_path: PathBuf,
pub absolute_path: PathBuf,
pub pack: String,
pub handler: String,
pub is_dir: bool,
pub options: HashMap<String, String>,
}Expand description
A file that matched a rule during pack scanning.
Fields§
§relative_path: PathBufPath relative to the pack root (e.g. "vimrc", "nvim/init.lua").
absolute_path: PathBufAbsolute path to the file.
pack: StringName of the pack this file belongs to.
handler: StringName of the handler that should process this file.
is_dir: boolWhether this entry is a directory.
options: HashMap<String, String>Handler-specific options from the matched rule.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuleMatch
impl RefUnwindSafe for RuleMatch
impl Send for RuleMatch
impl Sync for RuleMatch
impl Unpin for RuleMatch
impl UnsafeUnpin for RuleMatch
impl UnwindSafe for RuleMatch
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