pub struct Slot {
pub column: usize,
pub indent: usize,
}Expand description
The position rendered text occupies in the layout that receives it: the column its first line starts at, and the indent its continuation lines carry. A writer that reflows to a fill column subtracts these so the text fits the place it lands in rather than the left margin.
Fields§
§column: usizeColumns already consumed on the line the text opens on.
indent: usizeColumns prefixed to each line the text continues onto.
Trait Implementations§
impl Copy for Slot
impl Eq for Slot
impl StructuralPartialEq for Slot
Auto Trait Implementations§
impl Freeze for Slot
impl RefUnwindSafe for Slot
impl Send for Slot
impl Sync for Slot
impl Unpin for Slot
impl UnsafeUnpin for Slot
impl UnwindSafe for Slot
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