pub struct StyleBlock {
pub style: StylePrimitive,
pub indent: Option<usize>,
pub indent_prefix: Option<String>,
pub margin: Option<usize>,
}Expand description
Block-level style settings.
Fields§
§style: StylePrimitivePrimitive style settings.
indent: Option<usize>Indentation level.
indent_prefix: Option<String>Prefix used for indentation.
margin: Option<usize>Margin around the block.
Implementations§
Source§impl StyleBlock
impl StyleBlock
Sourcepub fn style(self, s: StylePrimitive) -> Self
pub fn style(self, s: StylePrimitive) -> Self
Sets the primitive style.
Sourcepub fn indent_prefix(self, s: impl Into<String>) -> Self
pub fn indent_prefix(self, s: impl Into<String>) -> Self
Sets the indent prefix.
Trait Implementations§
Source§impl Clone for StyleBlock
impl Clone for StyleBlock
Source§fn clone(&self) -> StyleBlock
fn clone(&self) -> StyleBlock
Returns a duplicate of the value. Read more
1.0.0 · 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 StyleBlock
impl Debug for StyleBlock
Source§impl Default for StyleBlock
impl Default for StyleBlock
Source§fn default() -> StyleBlock
fn default() -> StyleBlock
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StyleBlock
impl RefUnwindSafe for StyleBlock
impl Send for StyleBlock
impl Sync for StyleBlock
impl Unpin for StyleBlock
impl UnwindSafe for StyleBlock
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