pub struct WikiLinkSpan {
pub link: WikiLink,
pub start: usize,
pub end: usize,
}Expand description
A WikiLink with byte offsets into the source markdown (start inclusive, end exclusive).
Offsets cover the full [[...]] token and are guaranteed UTF-8 char boundaries.
Fields§
§link: WikiLinkParsed link.
start: usizeByte offset of the opening [[.
end: usizeByte offset after the closing ]].
Trait Implementations§
Source§impl Clone for WikiLinkSpan
impl Clone for WikiLinkSpan
Source§fn clone(&self) -> WikiLinkSpan
fn clone(&self) -> WikiLinkSpan
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 WikiLinkSpan
impl Debug for WikiLinkSpan
Source§impl<'de> Deserialize<'de> for WikiLinkSpan
impl<'de> Deserialize<'de> for WikiLinkSpan
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
impl Eq for WikiLinkSpan
Source§impl PartialEq for WikiLinkSpan
impl PartialEq for WikiLinkSpan
Source§impl Serialize for WikiLinkSpan
impl Serialize for WikiLinkSpan
impl StructuralPartialEq for WikiLinkSpan
Auto Trait Implementations§
impl Freeze for WikiLinkSpan
impl RefUnwindSafe for WikiLinkSpan
impl Send for WikiLinkSpan
impl Sync for WikiLinkSpan
impl Unpin for WikiLinkSpan
impl UnsafeUnpin for WikiLinkSpan
impl UnwindSafe for WikiLinkSpan
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§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.