pub struct BlockStyle {
pub bold: bool,
pub italics: bool,
pub underline: bool,
pub strike: bool,
pub size: Option<isize>,
}
Fields§
§bold: bool
Use bold
italics: bool
Use italics
underline: bool
Use underline
strike: bool
Use strikethrough
size: Option<isize>
Size is specified in points x 2, so size 19 is equal to 9.5pt
Implementations§
Source§impl BlockStyle
impl BlockStyle
pub fn new() -> Self
pub fn combine_with(&mut self, other: &BlockStyle)
Trait Implementations§
Source§impl Clone for BlockStyle
impl Clone for BlockStyle
Source§fn clone(&self) -> BlockStyle
fn clone(&self) -> BlockStyle
Returns a copy 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 moreSource§impl Debug for BlockStyle
impl Debug for BlockStyle
Source§impl PartialEq for BlockStyle
impl PartialEq for BlockStyle
Source§impl Serialize for BlockStyle
impl Serialize for BlockStyle
impl Eq for BlockStyle
impl StructuralPartialEq for BlockStyle
Auto Trait Implementations§
impl Freeze for BlockStyle
impl RefUnwindSafe for BlockStyle
impl Send for BlockStyle
impl Sync for BlockStyle
impl Unpin for BlockStyle
impl UnwindSafe for BlockStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.