pub struct SearchScope {
pub extensions: Vec<String>,
pub folder: Option<FolderScope>,
}Expand description
The scope of one search. Empty means unrestricted.
Fields§
§extensions: Vec<String>Lowercased file extensions, without the dot. Empty means every kind; the UI’s kind filters expand to these.
folder: Option<FolderScope>Implementations§
Source§impl SearchScope
impl SearchScope
Sourcepub fn is_unrestricted(&self) -> bool
pub fn is_unrestricted(&self) -> bool
Whether this scope restricts anything at all.
Trait Implementations§
Source§impl Clone for SearchScope
impl Clone for SearchScope
Source§impl Debug for SearchScope
impl Debug for SearchScope
Source§impl Default for SearchScope
impl Default for SearchScope
impl Eq for SearchScope
Source§impl PartialEq for SearchScope
impl PartialEq for SearchScope
impl StructuralPartialEq for SearchScope
Auto Trait Implementations§
impl Freeze for SearchScope
impl RefUnwindSafe for SearchScope
impl Send for SearchScope
impl Sync for SearchScope
impl Unpin for SearchScope
impl UnsafeUnpin for SearchScope
impl UnwindSafe for SearchScope
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