pub struct StyledSegment {
pub text: String,
pub bold: bool,
pub italic: bool,
pub code: bool,
pub header_level: u8,
}Expand description
A styled text segment.
Fields§
§text: String§bold: bool§italic: bool§code: bool§header_level: u8Implementations§
Trait Implementations§
Source§impl Clone for StyledSegment
impl Clone for StyledSegment
Source§fn clone(&self) -> StyledSegment
fn clone(&self) -> StyledSegment
Returns a duplicate of the value. Read more
1.0.0 · 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 StyledSegment
impl RefUnwindSafe for StyledSegment
impl Send for StyledSegment
impl Sync for StyledSegment
impl Unpin for StyledSegment
impl UnsafeUnpin for StyledSegment
impl UnwindSafe for StyledSegment
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