pub struct PrettifyOptions {
pub preferred_width: usize,
pub line_ending: LineEnding,
}Fields§
§preferred_width: usize§line_ending: LineEndingImplementations§
Source§impl PrettifyOptions
impl PrettifyOptions
Sourcepub fn builder() -> PrettifyOptionsBuilder
pub fn builder() -> PrettifyOptionsBuilder
Create an instance of PrettifyOptions using the builder syntax
Trait Implementations§
Source§impl Clone for PrettifyOptions
impl Clone for PrettifyOptions
Source§fn clone(&self) -> PrettifyOptions
fn clone(&self) -> PrettifyOptions
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 moreSource§impl Debug for PrettifyOptions
impl Debug for PrettifyOptions
Source§impl Default for PrettifyOptions
impl Default for PrettifyOptions
Source§impl PartialEq for PrettifyOptions
impl PartialEq for PrettifyOptions
Source§fn eq(&self, other: &PrettifyOptions) -> bool
fn eq(&self, other: &PrettifyOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PrettifyOptions
impl StructuralPartialEq for PrettifyOptions
Auto Trait Implementations§
impl Freeze for PrettifyOptions
impl RefUnwindSafe for PrettifyOptions
impl Send for PrettifyOptions
impl Sync for PrettifyOptions
impl Unpin for PrettifyOptions
impl UnsafeUnpin for PrettifyOptions
impl UnwindSafe for PrettifyOptions
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