pub struct TextSuperscript {
pub text: RichText,
}Expand description
Fields§
§text: RichTextTrait Implementations§
Source§impl Clone for TextSuperscript
impl Clone for TextSuperscript
Source§fn clone(&self) -> TextSuperscript
fn clone(&self) -> TextSuperscript
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextSuperscript
impl Debug for TextSuperscript
Source§impl Deserializable for TextSuperscript
impl Deserializable for TextSuperscript
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<TextSuperscript> for RichText
impl From<TextSuperscript> for RichText
Source§fn from(x: TextSuperscript) -> Self
fn from(x: TextSuperscript) -> Self
Converts to this type from the input type.
Source§impl Identifiable for TextSuperscript
impl Identifiable for TextSuperscript
Source§const CONSTRUCTOR_ID: u32 = 0xc7fb5e01
const CONSTRUCTOR_ID: u32 = 0xc7fb5e01
The constructor ID as specified in the TL schema.
Source§impl PartialEq for TextSuperscript
impl PartialEq for TextSuperscript
Source§impl Serializable for TextSuperscript
impl Serializable for TextSuperscript
Source§impl TryFrom<RichText> for TextSuperscript
impl TryFrom<RichText> for TextSuperscript
impl StructuralPartialEq for TextSuperscript
Auto Trait Implementations§
impl Freeze for TextSuperscript
impl RefUnwindSafe for TextSuperscript
impl Send for TextSuperscript
impl Sync for TextSuperscript
impl Unpin for TextSuperscript
impl UnsafeUnpin for TextSuperscript
impl UnwindSafe for TextSuperscript
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