pub struct MarkdownSourceSelector {
pub byte_start: usize,
pub byte_end: usize,
pub line_start: usize,
pub column_start: usize,
pub line_end: usize,
pub column_end: usize,
}Expand description
Exact source selector for one parser fact.
Fields§
§byte_start: usizeInclusive UTF-8 byte offset.
byte_end: usizeExclusive UTF-8 byte offset.
line_start: usizeInclusive one-based start line.
column_start: usizeZero-based Unicode-scalar start column.
line_end: usizeInclusive one-based end line.
column_end: usizeExclusive zero-based Unicode-scalar end column.
Trait Implementations§
Source§impl Clone for MarkdownSourceSelector
impl Clone for MarkdownSourceSelector
Source§fn clone(&self) -> MarkdownSourceSelector
fn clone(&self) -> MarkdownSourceSelector
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 MarkdownSourceSelector
impl Debug for MarkdownSourceSelector
impl Eq for MarkdownSourceSelector
Source§impl PartialEq for MarkdownSourceSelector
impl PartialEq for MarkdownSourceSelector
Source§fn eq(&self, other: &MarkdownSourceSelector) -> bool
fn eq(&self, other: &MarkdownSourceSelector) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MarkdownSourceSelector
Auto Trait Implementations§
impl Freeze for MarkdownSourceSelector
impl RefUnwindSafe for MarkdownSourceSelector
impl Send for MarkdownSourceSelector
impl Sync for MarkdownSourceSelector
impl Unpin for MarkdownSourceSelector
impl UnsafeUnpin for MarkdownSourceSelector
impl UnwindSafe for MarkdownSourceSelector
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.