pub struct InlineMatch {
pub open_idx: usize,
pub close_idx: usize,
pub inner: String,
}Expand description
Match payload for the seven delimiter-pair marks (bold, italic *2, strike, underline, highlight, code).
Fields§
§open_idx: usizeUTF-16 offset of the opening delimiter’s first character.
close_idx: usizeUTF-16 offset of the closing delimiter’s last character
(inclusive, so close_idx + 1 is the exclusive end for
setSelection).
inner: StringText between the delimiters (without them).
Trait Implementations§
Source§impl Clone for InlineMatch
impl Clone for InlineMatch
Source§fn clone(&self) -> InlineMatch
fn clone(&self) -> InlineMatch
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 InlineMatch
impl Debug for InlineMatch
Source§impl<'de> Deserialize<'de> for InlineMatch
impl<'de> Deserialize<'de> for InlineMatch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InlineMatch
impl PartialEq for InlineMatch
Source§impl Serialize for InlineMatch
impl Serialize for InlineMatch
impl Eq for InlineMatch
impl StructuralPartialEq for InlineMatch
Auto Trait Implementations§
impl Freeze for InlineMatch
impl RefUnwindSafe for InlineMatch
impl Send for InlineMatch
impl Sync for InlineMatch
impl Unpin for InlineMatch
impl UnsafeUnpin for InlineMatch
impl UnwindSafe for InlineMatch
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