pub struct Emoji {
pub name: String,
pub blocks: Vec<Block>,
}Expand description
An emoji: a name plus an ordered list of typed blocks.
The binary/unicode containers carry only the blocks; name round-trips
through the text block (every builder-made emoji has one).
Fields§
§name: StringEmoji name (mirrored into the text block by EmojiBuilder).
blocks: Vec<Block>The blocks, in insertion order.
Implementations§
Source§impl Emoji
impl Emoji
Sourcepub fn get_image(&self) -> Option<&ImageBlock>
pub fn get_image(&self) -> Option<&ImageBlock>
The first image block, if any.
Sourcepub fn get_encryption(&self) -> Option<&EncryptionBlock>
pub fn get_encryption(&self) -> Option<&EncryptionBlock>
The first encryption directive, if any.
Trait Implementations§
impl StructuralPartialEq for Emoji
Auto Trait Implementations§
impl Freeze for Emoji
impl RefUnwindSafe for Emoji
impl Send for Emoji
impl Sync for Emoji
impl Unpin for Emoji
impl UnsafeUnpin for Emoji
impl UnwindSafe for Emoji
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