pub struct SourceLine(pub Option<String>, pub usize);Expand description
A SourceLine represents the original file and line number where a line of
Asciidoc text was found before include file and conditional
pre-processing occurred.
The first member is the file name as specified on the include file directive. The second member is the 1-based line number.
Tuple Fields§
§0: Option<String>§1: usizeTrait Implementations§
Source§impl Clone for SourceLine
impl Clone for SourceLine
Source§fn clone(&self) -> SourceLine
fn clone(&self) -> SourceLine
Returns a duplicate 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 SourceLine
impl Debug for SourceLine
Source§impl Default for SourceLine
impl Default for SourceLine
Source§fn default() -> SourceLine
fn default() -> SourceLine
Returns the “default value” for a type. Read more
Source§impl PartialEq for SourceLine
impl PartialEq for SourceLine
impl Eq for SourceLine
impl StructuralPartialEq for SourceLine
Auto Trait Implementations§
impl Freeze for SourceLine
impl RefUnwindSafe for SourceLine
impl Send for SourceLine
impl Sync for SourceLine
impl Unpin for SourceLine
impl UnwindSafe for SourceLine
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