pub struct OutlineLayout {
pub gutter: u16,
pub indent: u16,
pub hang: u16,
pub column: u16,
pub min_column: u16,
pub extra_rows: BTreeMap<MarkId, u16>,
pub hang_glyphs: bool,
}Expand description
The outline layout a host gives a view: column geometry as data. With it, an outline
document’s markers move out of the text into a hang, nested blocks get their own
columns, and folds hide children (see docs/caretline/structure.md).
Fields§
§gutter: u16Columns before everything: the gutter, where a decoration’s gutter text goes.
indent: u16Columns per depth.
hang: u16Columns of the hang, before the content: where a block’s marker glyph or decoration goes.
column: u16The wrap width of depth-0 content (min(72, available) is a good choice).
min_column: u16The narrowest a nested block’s content wraps at.
extra_rows: BTreeMap<MarkId, u16>Rows a host draws after a block (anything of its own: an inline image, a form).
hang_glyphs: boolDraw a plain glyph in each hang (•, 1., [ ], #), for a host that draws none.
Trait Implementations§
Source§impl Clone for OutlineLayout
impl Clone for OutlineLayout
Source§impl Debug for OutlineLayout
impl Debug for OutlineLayout
Source§impl Default for OutlineLayout
impl Default for OutlineLayout
Source§impl<'de> Deserialize<'de> for OutlineLayoutwhere
OutlineLayout: Default,
impl<'de> Deserialize<'de> for OutlineLayoutwhere
OutlineLayout: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OutlineLayout
Source§impl PartialEq for OutlineLayout
impl PartialEq for OutlineLayout
Source§impl Serialize for OutlineLayout
impl Serialize for OutlineLayout
impl StructuralPartialEq for OutlineLayout
Auto Trait Implementations§
impl Freeze for OutlineLayout
impl RefUnwindSafe for OutlineLayout
impl Send for OutlineLayout
impl Sync for OutlineLayout
impl Unpin for OutlineLayout
impl UnsafeUnpin for OutlineLayout
impl UnwindSafe for OutlineLayout
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.