pub struct ParagraphInfo {
pub justification: ParagraphJustification,
pub is_list_item: bool,
pub is_crown: bool,
pub first_line_indent: i32,
}Expand description
Paragraph information.
Fields§
§justification: ParagraphJustificationParagraph alignment.
is_list_item: boolWhether we believe this is a member of an ordered or unordered list or not.
is_crown: boolWhether the first line of the paragraph is aligned with the other lines of the paragraph even though subsequent paragraphs have first line indents. This typically indicates that this is the continuation of a previous paragraph or that it is the very first paragraph in the chapter.
first_line_indent: i32First line indentation with respect to justification.
Can be negative.
Trait Implementations§
Source§impl Clone for ParagraphInfo
impl Clone for ParagraphInfo
Source§fn clone(&self) -> ParagraphInfo
fn clone(&self) -> ParagraphInfo
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 ParagraphInfo
impl RefUnwindSafe for ParagraphInfo
impl Send for ParagraphInfo
impl Sync for ParagraphInfo
impl Unpin for ParagraphInfo
impl UnsafeUnpin for ParagraphInfo
impl UnwindSafe for ParagraphInfo
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