pub struct CodeInline {
pub meta: NodeMeta,
pub value: String,
}Expand description
An inline code span: `code`. The fence and the padding spaces are
not recorded: the serializer chooses them from the value.
Fields§
§meta: NodeMetaNode metadata (source span).
value: StringThe code text, normalized as CommonMark reads it: line endings as spaces, and one space stripped from each end when both ends hold one and the text is not all spaces.
Implementations§
Trait Implementations§
Source§impl Clone for CodeInline
impl Clone for CodeInline
Source§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
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