pub struct DelimMatch {
pub offset_in_run: u8,
pub len: u8,
pub is_opener: bool,
pub partner_event: u32,
pub partner_offset: u8,
pub kind: EmphasisKind,
}Expand description
One matched fragment within a IrEvent::DelimRun.
Fields§
§offset_in_run: u8Byte offset of this fragment relative to the run’s start.
len: u8Number of bytes in this fragment (1 or 2).
is_opener: boolWhether this fragment is the opener (true) or closer of the pair.
partner_event: u32IR event index of the partner run.
partner_offset: u8Byte offset within the partner run of the partner fragment.
kind: EmphasisKindEmphasis kind (Emph for len == 1, Strong for len == 2).
Trait Implementations§
Source§impl Clone for DelimMatch
impl Clone for DelimMatch
Source§fn clone(&self) -> DelimMatch
fn clone(&self) -> DelimMatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DelimMatch
impl Debug for DelimMatch
impl Copy for DelimMatch
Auto Trait Implementations§
impl Freeze for DelimMatch
impl RefUnwindSafe for DelimMatch
impl Send for DelimMatch
impl Sync for DelimMatch
impl Unpin for DelimMatch
impl UnsafeUnpin for DelimMatch
impl UnwindSafe for DelimMatch
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