Struct NodeCode
pub struct NodeCode { pub num_backticks: usize, pub literal: String }
An inline code span.
Fields
num_backticks: usizeThe number of backticks
literal: StringThe content of the inline code span. As the contents are not interpreted as Markdown at all, they are contained within this structure, rather than inserted into a child inline of any kind.
Trait Implementations
impl Clone for NodeCode
fn clone(&self) -> NodeCode
impl Debug for NodeCode
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for NodeCode
fn default() -> NodeCode
impl Eq for NodeCode
impl PartialEq for NodeCode
fn eq(&self, other: &NodeCode) -> bool
impl StructuralPartialEq for NodeCode
Auto Trait Implementations
impl Freeze for NodeCode
impl RefUnwindSafe for NodeCode
impl Send for NodeCode
impl Sync for NodeCode
impl Unpin for NodeCode
impl UnsafeUnpin for NodeCode
impl UnwindSafe for NodeCode
Blanket Implementations
impl<T> Any for NodeCode
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for NodeCode
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for NodeCode
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for NodeCode
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for NodeCode
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for NodeCode
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for NodeCode
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for NodeCode
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for NodeCode
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>