pub struct Style(/* private fields */);Expand description
A set of inline text styles which can be combined.
Telegram permits entities to overlap, so combining styles simply emits one
entity per style over the same span. That is why this is a bit set rather
than a nesting API: Style::BOLD | Style::ITALIC needs no nesting at all.
Styles which carry data — links, mentions, preformatted blocks, custom emoji — are not expressible as flags and have dedicated builder methods.
Implementations§
Source§impl Style
impl Style
Sourcepub const STRIKETHROUGH: Self
pub const STRIKETHROUGH: Self
Struck through text.
Trait Implementations§
Source§impl BitOrAssign for Style
impl BitOrAssign for Style
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreimpl Copy for Style
impl Eq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Style
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