pub struct Markup<'a> {
pub kind: MarkupKind,
pub name: Cow<'a, str>,
pub options: Options<'a>,
pub attributes: Attributes<'a>,
}Expand description
Markup: {#name …}, {#name … /} or {/name …}.
Fields§
§kind: MarkupKindOpen, standalone or close.
name: Cow<'a, str>The identifier, without the # / / sigils.
options: Options<'a>The options, in source order.
attributes: Attributes<'a>The attributes, in source order.
Implementations§
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Markup<'a>
Available on crate feature serde only.
impl<'de: 'a, 'a> Deserialize<'de> for Markup<'a>
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl<'a> Eq for Markup<'a>
impl<'a> StructuralPartialEq for Markup<'a>
Auto Trait Implementations§
impl<'a> Freeze for Markup<'a>
impl<'a> RefUnwindSafe for Markup<'a>
impl<'a> Send for Markup<'a>
impl<'a> Sync for Markup<'a>
impl<'a> Unpin for Markup<'a>
impl<'a> UnsafeUnpin for Markup<'a>
impl<'a> UnwindSafe for Markup<'a>
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