pub struct MarkdownCodeLine {
pub index: usize,
pub source: SourceRange,
pub source_line: Option<usize>,
pub text: String,
pub target_id: Option<MarkdownTargetId>,
}Expand description
One content line inside a code block.
Fields§
§index: usize§source: SourceRange§source_line: Option<usize>§text: String§target_id: Option<MarkdownTargetId>Implementations§
Source§impl MarkdownCodeLine
impl MarkdownCodeLine
Sourcepub const fn target_id(&self) -> Option<MarkdownTargetId>
pub const fn target_id(&self) -> Option<MarkdownTargetId>
Returns this line’s document-local target ID.
Trait Implementations§
Source§impl Clone for MarkdownCodeLine
impl Clone for MarkdownCodeLine
Source§fn clone(&self) -> MarkdownCodeLine
fn clone(&self) -> MarkdownCodeLine
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 MarkdownCodeLine
impl Debug for MarkdownCodeLine
Source§impl<'de> Deserialize<'de> for MarkdownCodeLine
impl<'de> Deserialize<'de> for MarkdownCodeLine
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 MarkdownCodeLine
Source§impl PartialEq for MarkdownCodeLine
impl PartialEq for MarkdownCodeLine
Source§impl Serialize for MarkdownCodeLine
impl Serialize for MarkdownCodeLine
impl StructuralPartialEq for MarkdownCodeLine
Auto Trait Implementations§
impl Freeze for MarkdownCodeLine
impl RefUnwindSafe for MarkdownCodeLine
impl Send for MarkdownCodeLine
impl Sync for MarkdownCodeLine
impl Unpin for MarkdownCodeLine
impl UnsafeUnpin for MarkdownCodeLine
impl UnwindSafe for MarkdownCodeLine
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