pub struct RawRef {
pub text: String,
pub syntax: RefSyntax,
pub byte_from: usize,
pub byte_to: usize,
}Expand description
A raw reference extracted from a markdown source string.
Fields§
§text: StringThe resolved/target text (the inner stem, a/b, or path part — no
brackets, no alias, no pothole). This is the string to pass to the
classifier.
syntax: RefSyntaxWhich syntax form produced this reference.
byte_from: usizeByte offset in the source string where the token starts (inclusive).
byte_to: usizeByte offset in the source string where the token ends (exclusive).
Trait Implementations§
impl Eq for RawRef
impl StructuralPartialEq for RawRef
Auto Trait Implementations§
impl Freeze for RawRef
impl RefUnwindSafe for RawRef
impl Send for RawRef
impl Sync for RawRef
impl Unpin for RawRef
impl UnsafeUnpin for RawRef
impl UnwindSafe for RawRef
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.