pub struct HorizontalBlock {
pub text: String,
pub wrap_columns: usize,
pub kind: HorizontalKind,
}Fields§
§text: String§wrap_columns: usizeLine length in characters. Line breaking itself is the host’s job — a terminal, a browser, and a PDF measure text differently, and the core has no font metrics to break with honestly.
kind: HorizontalKindTrait Implementations§
Source§impl Clone for HorizontalBlock
impl Clone for HorizontalBlock
Source§fn clone(&self) -> HorizontalBlock
fn clone(&self) -> HorizontalBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HorizontalBlock
impl Debug for HorizontalBlock
impl Eq for HorizontalBlock
Source§impl PartialEq for HorizontalBlock
impl PartialEq for HorizontalBlock
impl StructuralPartialEq for HorizontalBlock
Auto Trait Implementations§
impl Freeze for HorizontalBlock
impl RefUnwindSafe for HorizontalBlock
impl Send for HorizontalBlock
impl Sync for HorizontalBlock
impl Unpin for HorizontalBlock
impl UnsafeUnpin for HorizontalBlock
impl UnwindSafe for HorizontalBlock
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