pub struct SearchOptions {Show 13 fields
pub query: Option<String>,
pub path: Option<String>,
pub case: bool,
pub regexp: bool,
pub limit: usize,
pub context: Option<usize>,
pub symbol: Option<String>,
pub id: Option<String>,
pub cpp: bool,
pub c_lang: bool,
pub webidl: bool,
pub js: bool,
pub category_filter: CategoryFilter,
}Fields§
§query: Option<String>§path: Option<String>§case: bool§regexp: bool§limit: usize§context: Option<usize>§symbol: Option<String>§id: Option<String>§cpp: bool§c_lang: bool§webidl: bool§js: bool§category_filter: CategoryFilterImplementations§
Source§impl SearchOptions
impl SearchOptions
pub fn matches_language_filter(&self, path: &str) -> bool
pub fn build_query(&self) -> String
Trait Implementations§
Source§impl Clone for SearchOptions
impl Clone for SearchOptions
Source§fn clone(&self) -> SearchOptions
fn clone(&self) -> SearchOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 SearchOptions
impl Debug for SearchOptions
Auto Trait Implementations§
impl Freeze for SearchOptions
impl RefUnwindSafe for SearchOptions
impl Send for SearchOptions
impl Sync for SearchOptions
impl Unpin for SearchOptions
impl UnsafeUnpin for SearchOptions
impl UnwindSafe for SearchOptions
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