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
sourceimpl<'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
Trait Implementations
sourceimpl<'a> From<SDT<'a>> for BodyContent<'a>
impl<'a> From<SDT<'a>> for BodyContent<'a>
sourcefn from(original: SDT<'a>) -> BodyContent<'a>
fn from(original: SDT<'a>) -> BodyContent<'a>
Converts to this type from the input type.
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more