pub struct Fmt {
pub flags: u8,
pub color: u32,
pub bg: u32,
pub size: u16,
pub font: String,
pub link: String,
}Expand description
the format of a run of characters; zero / empty fields take the editor’s defaults
Fields§
§flags: u8RF_BOLD | RF_ITALIC | RF_UNDER | RF_STRIKE
color: u32text colour 0xAARRGGBB (0: the theme’s text colour)
bg: u32highlight colour behind the text (0: none)
size: u16size in tenths of a point (0: the document’s size)
font: Stringfont family (“”: the document’s font)
link: Stringlink target (“”: not a link)
Implementations§
Trait Implementations§
impl Eq for Fmt
impl StructuralPartialEq for Fmt
Auto Trait Implementations§
impl Forget for Fmt
impl Freeze for Fmt
impl RefUnwindSafe for Fmt
impl Send for Fmt
impl Sync for Fmt
impl Unpin for Fmt
impl UnsafeUnpin for Fmt
impl UnwindSafe for Fmt
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