pub enum EmojiSource {
Url {
base_url: String,
format: EmojiFormat,
with_variation_selectors: bool,
},
Builder {
builder: EmojiUrlBuilder,
format: EmojiFormat,
with_variation_selectors: bool,
},
}Variants§
Implementations§
Source§impl EmojiSource
impl EmojiSource
pub fn url(base_url: impl Into<String>, format: EmojiFormat) -> Self
pub fn builder<F>(builder: F, format: EmojiFormat) -> Self
pub fn with_variation_selectors(self, with_variation_selectors: bool) -> Self
pub fn resolve_url(&self, emoji: &str) -> Option<String>
Trait Implementations§
Source§impl Clone for EmojiSource
impl Clone for EmojiSource
Source§fn clone(&self) -> EmojiSource
fn clone(&self) -> EmojiSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EmojiSource
impl !RefUnwindSafe for EmojiSource
impl Send for EmojiSource
impl Sync for EmojiSource
impl Unpin for EmojiSource
impl UnsafeUnpin for EmojiSource
impl !UnwindSafe for EmojiSource
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