pub struct SDT<'a> {
pub property: Option<SDTProperty<'a>>,
pub end_property: Option<SDTEndProperty>,
pub content: Option<SDTContent<'a>>,
}
Expand description
SDT
Fields§
§property: Option<SDTProperty<'a>>
§end_property: Option<SDTEndProperty>
§content: Option<SDTContent<'a>>
Implementations§
Source§impl<'a> SDT<'a>
impl<'a> SDT<'a>
pub fn property<T: Into<SDTProperty<'a>>>(self, value: T) -> Self
pub fn end_property<T: Into<SDTEndProperty>>(self, value: T) -> Self
pub fn content<T: Into<SDTContent<'a>>>(self, value: T) -> Self
pub fn iter_text(&self) -> Box<dyn Iterator<Item = &Cow<'a, str>> + '_>
pub fn text(&self) -> String
Trait Implementations§
Source§impl<'a> From<SDT<'a>> for BodyContent<'a>
impl<'a> From<SDT<'a>> for BodyContent<'a>
Source§fn from(original: SDT<'a>) -> BodyContent<'a>
fn from(original: SDT<'a>) -> BodyContent<'a>
Converts to this type from the input type.
Source§impl<'a> From<SDT<'a>> for ParagraphContent<'a>
impl<'a> From<SDT<'a>> for ParagraphContent<'a>
Source§fn from(original: SDT<'a>) -> ParagraphContent<'a>
fn from(original: SDT<'a>) -> ParagraphContent<'a>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for SDT<'a>
impl<'a> RefUnwindSafe for SDT<'a>
impl<'a> Send for SDT<'a>
impl<'a> Sync for SDT<'a>
impl<'a> Unpin for SDT<'a>
impl<'a> UnwindSafe for SDT<'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