pub struct Highlight {
pub title: Option<String>,
pub icon: Option<String>,
pub body: Vec<Paragraph>,
}Expand description
§Highlight
Must start and end with Bang of length 2.
Title is sequence of tokens between first Bang of length 2 followed by Space and Eol. Can be omitted.
Icon is sequence of tokens between Bang of length 1 followed by Space and Eol. Can be omitted.
Title and Icon can not contain Terminator.
Body is one or more Paragraph’s.
Example:
!! Tile
! Icon
body
!!Example without title:
!!
! Icon
body
!!Example without icon:
!! Tile
body
!!Fields§
§title: Option<String>§icon: Option<String>§body: Vec<Paragraph>Implementations§
Trait Implementations§
impl Eq for Highlight
impl StructuralPartialEq for Highlight
Auto Trait Implementations§
impl Freeze for Highlight
impl RefUnwindSafe for Highlight
impl Send for Highlight
impl Sync for Highlight
impl Unpin for Highlight
impl UnwindSafe for Highlight
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