Struct mlc::link_extractors::link_extractor::MarkupLink
source · pub struct MarkupLink {
pub source: String,
pub target: String,
pub line: usize,
pub column: usize,
}
Expand description
Link found in markup files
Fields§
§source: String
The source file of the link
target: String
The target the link points to
line: usize
The line number were the link was found
column: usize
The column number were the link was found
Implementations§
source§impl MarkupLink
impl MarkupLink
pub fn source_str(&self) -> String
Trait Implementations§
source§impl Clone for MarkupLink
impl Clone for MarkupLink
source§fn clone(&self) -> MarkupLink
fn clone(&self) -> MarkupLink
Returns a copy of the value. Read more
1.0.0 · 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 MarkupLink
impl Debug for MarkupLink
source§impl PartialEq for MarkupLink
impl PartialEq for MarkupLink
source§fn eq(&self, other: &MarkupLink) -> bool
fn eq(&self, other: &MarkupLink) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MarkupLink
impl StructuralPartialEq for MarkupLink
Auto Trait Implementations§
impl Freeze for MarkupLink
impl RefUnwindSafe for MarkupLink
impl Send for MarkupLink
impl Sync for MarkupLink
impl Unpin for MarkupLink
impl UnwindSafe for MarkupLink
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<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.