pub struct Search { /* private fields */ }Expand description
A robust, headless-ready search engine.
Implementations§
Source§impl Search
impl Search
pub fn new() -> Self
pub fn is_match(&self, text: &str) -> bool
pub fn set_text(&mut self, text: impl Into<String>)
pub fn set_options(&mut self, options: SearchOptions)
pub fn toggle_option(&mut self, option: SearchOptions)
pub fn open(&mut self)
pub fn clear(&mut self)
pub fn edit_text(&mut self, f: impl FnOnce(&mut String) -> bool) -> bool
pub fn text(&self) -> &str
pub const fn options(&self) -> SearchOptions
pub const fn is_active(&self) -> bool
pub fn error_message(&self) -> Option<&str>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Search
impl<'de> Deserialize<'de> for Search
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Search
impl RefUnwindSafe for Search
impl Send for Search
impl Sync for Search
impl Unpin for Search
impl UnsafeUnpin for Search
impl UnwindSafe for Search
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