pub enum NewlineStyle {
Auto,
Unix,
Windows,
}Expand description
The newline style to use when formatting.
Variants§
Auto
Use the native newline style of the platform.
Unix
Use Unix-style newlines (\n).
Windows
Use Windows-style newlines (\r\n).
Implementations§
Trait Implementations§
Source§impl Clone for NewlineStyle
impl Clone for NewlineStyle
Source§fn clone(&self) -> NewlineStyle
fn clone(&self) -> NewlineStyle
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 moreimpl Copy for NewlineStyle
Source§impl Debug for NewlineStyle
impl Debug for NewlineStyle
Source§impl Default for NewlineStyle
impl Default for NewlineStyle
Source§fn default() -> NewlineStyle
fn default() -> NewlineStyle
Returns the “default value” for a type. Read more
Source§impl Display for NewlineStyle
impl Display for NewlineStyle
impl Eq for NewlineStyle
Source§impl FromStr for NewlineStyle
impl FromStr for NewlineStyle
Source§impl JsonSchema for NewlineStyle
impl JsonSchema for NewlineStyle
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for NewlineStyle
impl PartialEq for NewlineStyle
impl StructuralPartialEq for NewlineStyle
Auto Trait Implementations§
impl Freeze for NewlineStyle
impl RefUnwindSafe for NewlineStyle
impl Send for NewlineStyle
impl Sync for NewlineStyle
impl Unpin for NewlineStyle
impl UnsafeUnpin for NewlineStyle
impl UnwindSafe for NewlineStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.