pub struct CodeInline {
pub meta: NodeMeta,
pub value: String,
pub raw: String,
pub fence_length: usize,
}Expand description
An inline code span: `code`.
Fields§
§meta: NodeMetaNode metadata (source span).
value: StringThe normalized code text (trimmed/collapsed per CommonMark).
raw: StringThe raw text between the backtick fences, before normalization.
fence_length: usizeThe number of backticks in the fence.
Implementations§
Trait Implementations§
Source§impl Clone for CodeInline
impl Clone for CodeInline
Source§fn clone(&self) -> CodeInline
fn clone(&self) -> CodeInline
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 CodeInline
impl Debug for CodeInline
impl Eq for CodeInline
Source§impl From<CodeInline> for Inline
impl From<CodeInline> for Inline
Source§fn from(node: CodeInline) -> Self
fn from(node: CodeInline) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CodeInline
impl PartialEq for CodeInline
Source§fn eq(&self, other: &CodeInline) -> bool
fn eq(&self, other: &CodeInline) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CodeInline
Auto Trait Implementations§
impl Freeze for CodeInline
impl RefUnwindSafe for CodeInline
impl Send for CodeInline
impl Sync for CodeInline
impl Unpin for CodeInline
impl UnsafeUnpin for CodeInline
impl UnwindSafe for CodeInline
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