pub struct Level {
pub level: usize,
pub start: Start,
pub format: NumberFormat,
pub text: LevelText,
pub jc: LevelJc,
pub paragraph_property: ParagraphProperty,
pub run_property: RunProperty,
pub suffix: LevelSuffixType,
pub pstyle: Option<String>,
pub level_restart: Option<LevelRestart>,
pub is_lgl: Option<IsLgl>,
}
Fields§
§level: usize
§start: Start
§format: NumberFormat
§text: LevelText
§jc: LevelJc
§paragraph_property: ParagraphProperty
§run_property: RunProperty
§suffix: LevelSuffixType
§pstyle: Option<String>
§level_restart: Option<LevelRestart>
§is_lgl: Option<IsLgl>
Implementations§
Source§impl Level
impl Level
pub fn new( level: usize, start: Start, format: NumberFormat, text: LevelText, jc: LevelJc, ) -> Level
pub fn indent( self, left: Option<i32>, special_indent: Option<SpecialIndentType>, end: Option<i32>, start_chars: Option<i32>, ) -> Self
pub fn paragraph_style(self, style_id: impl Into<String>) -> Self
pub fn suffix(self, s: LevelSuffixType) -> Self
pub fn size(self, size: usize) -> Self
pub fn spacing(self, v: i32) -> Self
pub fn color(self, color: impl Into<String>) -> Self
pub fn highlight(self, color: impl Into<String>) -> Self
pub fn bold(self) -> Self
pub fn italic(self) -> Self
pub fn underline(self, line_type: impl Into<String>) -> Self
pub fn vanish(self) -> Self
pub fn fonts(self, f: RunFonts) -> Self
pub fn level_restart(self, v: u32) -> Self
pub fn is_lgl(self) -> Self
Trait Implementations§
Source§impl ElementReader for Level
impl ElementReader for Level
fn read<R: Read>( r: &mut EventReader<R>, attrs: &[OwnedAttribute], ) -> Result<Self, ReaderError>
impl StructuralPartialEq for Level
Auto Trait Implementations§
impl Freeze for Level
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnwindSafe for Level
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