#[non_exhaustive]pub struct AttachmentCopyText {
pub index: u32,
pub text: Arc<str>,
}Expand description
What an attachment of a text gives when the text is copied
(AttributedText::copy_texts): a formula’s source, an emoji image’s
character.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.index: u32The attachment’s placeholder character (UTF-16 offset,
TextAttachment::index).
text: Arc<str>What a copy gives in its place.
Implementations§
Trait Implementations§
Source§impl Clone for AttachmentCopyText
impl Clone for AttachmentCopyText
Source§impl Debug for AttachmentCopyText
impl Debug for AttachmentCopyText
Source§impl Default for AttachmentCopyText
impl Default for AttachmentCopyText
Source§impl PartialEq for AttachmentCopyText
impl PartialEq for AttachmentCopyText
impl StructuralPartialEq for AttachmentCopyText
Auto Trait Implementations§
impl Forget for AttachmentCopyText
impl Freeze for AttachmentCopyText
impl Move for AttachmentCopyText
impl RefUnwindSafe for AttachmentCopyText
impl Send for AttachmentCopyText
impl Sync for AttachmentCopyText
impl Unpin for AttachmentCopyText
impl UnsafeUnpin for AttachmentCopyText
impl UnwindSafe for AttachmentCopyText
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