Struct broot::pattern::ContentRegexPattern [−][src]
pub struct ContentRegexPattern { /* fields omitted */ }
A regex for searching in file content
Implementations
impl ContentRegexPattern
[src]
impl ContentRegexPattern
[src]pub fn from(pat: &str, flags: &str) -> Result<Self, PatternError>
[src]
pub fn to_regex_parts(&self) -> (String, String)
[src]
pub fn score_of(&self, candidate: Candidate<'_>) -> Option<i32>
[src]
pub fn try_get_content_match(
&self,
path: &Path,
desired_len: usize
) -> Result<Option<ContentMatch>>
[src]
&self,
path: &Path,
desired_len: usize
) -> Result<Option<ContentMatch>>
pub fn get_content_match(
&self,
path: &Path,
desired_len: usize
) -> Option<ContentMatch>
[src]
&self,
path: &Path,
desired_len: usize
) -> Option<ContentMatch>
Trait Implementations
impl Clone for ContentRegexPattern
[src]
impl Clone for ContentRegexPattern
[src]fn clone(&self) -> ContentRegexPattern
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for ContentRegexPattern
impl RefUnwindSafe for ContentRegexPattern
impl Send for ContentRegexPattern
impl Send for ContentRegexPattern
impl Sync for ContentRegexPattern
impl Sync for ContentRegexPattern
impl Unpin for ContentRegexPattern
impl Unpin for ContentRegexPattern
impl UnwindSafe for ContentRegexPattern
impl UnwindSafe for ContentRegexPattern