pub struct BulletPoint {
pub text: String,
pub level: u32,
pub style: BulletStyle,
pub format: Option<BulletTextFormat>,
}Expand description
A bullet point with optional style and formatting
Fields§
§text: String§level: u32§style: BulletStyle§format: Option<BulletTextFormat>Implementations§
Source§impl BulletPoint
impl BulletPoint
pub fn new(text: &str) -> Self
pub fn with_level(self, level: u32) -> Self
pub fn with_style(self, style: BulletStyle) -> Self
pub fn with_format(self, format: BulletTextFormat) -> Self
pub fn bold(self) -> Self
pub fn italic(self) -> Self
pub fn strikethrough(self) -> Self
pub fn subscript(self) -> Self
pub fn superscript(self) -> Self
pub fn highlight(self, color: &str) -> Self
pub fn color(self, hex: &str) -> Self
pub fn font_size(self, size: u32) -> Self
Trait Implementations§
Source§impl Clone for BulletPoint
impl Clone for BulletPoint
Source§fn clone(&self) -> BulletPoint
fn clone(&self) -> BulletPoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BulletPoint
impl RefUnwindSafe for BulletPoint
impl Send for BulletPoint
impl Sync for BulletPoint
impl Unpin for BulletPoint
impl UnsafeUnpin for BulletPoint
impl UnwindSafe for BulletPoint
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