pub struct Layout {
pub items: Vec<LayoutItem>,
pub multiline_nodes: HashSet<NodeId>,
}Expand description
Layout information describing how to render the document.
Fields§
§items: Vec<LayoutItem>Top-level items in order
multiline_nodes: HashSet<NodeId>Nodes that should be formatted with multiple lines
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnwindSafe for Layout
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