[−][src]Struct emoji_searcher::EmojiSearcher
An emoji searcher
Implementations
impl EmojiSearcher
[src]
pub fn new(db: Rc<EmojiDb>) -> EmojiSearcher
[src]
Creates a new emoji searcher with the provided database
pub fn search(&self, search: String) -> impl Iterator<Item = SearchResult<'_>>
[src]
Search for an emoji matching the given string.
This will match any emoji that has a shortcode or a tag that contains the provided search string. The return value is an iterator of results that contain both the provided emoji as well as the tag that matched the provided search
pub fn swap_db(&mut self, new_db: Rc<EmojiDb>)
[src]
Update the internal emoji database with a new one. Can be used with EmojiDb::from_web to provide an updated database
Auto Trait Implementations
impl !RefUnwindSafe for EmojiSearcher
impl !Send for EmojiSearcher
impl !Sync for EmojiSearcher
impl Unpin for EmojiSearcher
impl UnwindSafe for EmojiSearcher
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,