pub struct LayoutOptions {
pub terminal_width: u16,
pub max_width: u16,
pub margin: u16,
}Expand description
layout options(§21, §22)。
Fields§
§terminal_width: u16§max_width: u16本文の最大幅。デフォルト100(§21)。
margin: u16左右margin。デフォルト2(§22)。
Trait Implementations§
Source§impl Clone for LayoutOptions
impl Clone for LayoutOptions
Source§fn clone(&self) -> LayoutOptions
fn clone(&self) -> LayoutOptions
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 moreimpl Copy for LayoutOptions
Source§impl Debug for LayoutOptions
impl Debug for LayoutOptions
Source§impl Default for LayoutOptions
impl Default for LayoutOptions
impl Eq for LayoutOptions
Source§impl PartialEq for LayoutOptions
impl PartialEq for LayoutOptions
impl StructuralPartialEq for LayoutOptions
Auto Trait Implementations§
impl Freeze for LayoutOptions
impl RefUnwindSafe for LayoutOptions
impl Send for LayoutOptions
impl Sync for LayoutOptions
impl Unpin for LayoutOptions
impl UnsafeUnpin for LayoutOptions
impl UnwindSafe for LayoutOptions
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