Struct text_document::format::BlockFormat
source · [−]pub struct BlockFormat {
pub alignment: Option<Alignment>,
pub top_margin: Option<usize>,
pub bottom_margin: Option<usize>,
pub left_margin: Option<usize>,
pub right_margin: Option<usize>,
pub heading_level: Option<u8>,
pub indent: Option<u8>,
pub text_indent: Option<usize>,
pub tab_positions: Option<Vec<Tab>>,
pub marker: Option<MarkerType>,
}
Fields
alignment: Option<Alignment>
top_margin: Option<usize>
bottom_margin: Option<usize>
left_margin: Option<usize>
right_margin: Option<usize>
heading_level: Option<u8>
indent: Option<u8>
text_indent: Option<usize>
tab_positions: Option<Vec<Tab>>
marker: Option<MarkerType>
Implementations
sourceimpl BlockFormat
impl BlockFormat
Trait Implementations
sourceimpl Clone for BlockFormat
impl Clone for BlockFormat
sourcefn clone(&self) -> BlockFormat
fn clone(&self) -> BlockFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BlockFormat
impl Debug for BlockFormat
sourceimpl Default for BlockFormat
impl Default for BlockFormat
sourcefn default() -> BlockFormat
fn default() -> BlockFormat
Returns the “default value” for a type. Read more
sourceimpl PartialEq<BlockFormat> for BlockFormat
impl PartialEq<BlockFormat> for BlockFormat
sourcefn eq(&self, other: &BlockFormat) -> bool
fn eq(&self, other: &BlockFormat) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BlockFormat) -> bool
fn ne(&self, other: &BlockFormat) -> bool
This method tests for !=
.
impl Eq for BlockFormat
impl StructuralEq for BlockFormat
impl StructuralPartialEq for BlockFormat
Auto Trait Implementations
impl RefUnwindSafe for BlockFormat
impl Send for BlockFormat
impl Sync for BlockFormat
impl Unpin for BlockFormat
impl UnwindSafe for BlockFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more