pub struct InlineRef {
pub token: String,
pub path: String,
pub mime_type: Option<MimeType>,
pub start: usize,
}Expand description
One @path token found in a text.
Fields§
§token: StringThe token as written, with its @ and any :type suffix, for a caller
that highlights or echoes it back exactly as the user typed it.
path: StringThe path part, without @ or the suffix.
mime_type: Option<MimeType>A :type/subtype suffix, when one was written.
start: usizeByte offset of the token’s @ in the cleaned text, for the same
highlighting caller.
Trait Implementations§
impl Eq for InlineRef
impl StructuralPartialEq for InlineRef
Auto Trait Implementations§
impl Freeze for InlineRef
impl RefUnwindSafe for InlineRef
impl Send for InlineRef
impl Sync for InlineRef
impl Unpin for InlineRef
impl UnsafeUnpin for InlineRef
impl UnwindSafe for InlineRef
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.