pub struct IndentOptions {
pub indent: Cow<'static, str>,
pub leading: Option<Cow<'static, str>>,
pub trailing: Option<Cow<'static, str>>,
pub trailing_newline: bool,
}Expand description
Options for creating indented blocks.
Fields§
§indent: Cow<'static, str>The indentation to add to the current indentation.
leading: Option<Cow<'static, str>>The text to add before the indented block begins. It’ll be suffixed with a newline character.
trailing: Option<Cow<'static, str>>The text to add after the indentated block ends.
trailing_newline: boolWhether a newline should be inserted after the block ends (after the trailing, if one is provided).
Auto Trait Implementations§
impl Freeze for IndentOptions
impl RefUnwindSafe for IndentOptions
impl Send for IndentOptions
impl Sync for IndentOptions
impl Unpin for IndentOptions
impl UnsafeUnpin for IndentOptions
impl UnwindSafe for IndentOptions
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