pub struct NewShapeOptions {
pub eol: OpenEol,
pub bom: bool,
}Expand description
Options for new_shape.
Construct it with Default and set the fields you need, so a later option
is not a breaking change:
use frontmatter_lossless::{new_shape, NewShapeOptions, OpenEol};
let shape = new_shape(NewShapeOptions { eol: OpenEol::Crlf, ..Default::default() });
assert_eq!(shape.open_eol, OpenEol::Crlf);Fields§
§eol: OpenEolLine ending of both fences. Defaults to OpenEol::Lf.
bom: boolWhether the note starts with a byte-order mark. Defaults to false.
Trait Implementations§
Source§impl Clone for NewShapeOptions
impl Clone for NewShapeOptions
impl Copy for NewShapeOptions
Source§impl Debug for NewShapeOptions
impl Debug for NewShapeOptions
Auto Trait Implementations§
impl Forget for NewShapeOptions
impl Freeze for NewShapeOptions
impl Move for NewShapeOptions
impl RefUnwindSafe for NewShapeOptions
impl Send for NewShapeOptions
impl Sync for NewShapeOptions
impl Unpin for NewShapeOptions
impl UnsafeUnpin for NewShapeOptions
impl UnwindSafe for NewShapeOptions
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