#[repr(u8)]pub(crate) enum StringStyle {
Plain = 0,
Literal = 1,
}Expand description
String rendering style requested by an annotation.
Variants§
Plain = 0
Render the string using the format’s default style.
Literal = 1
Render the string as a literal block, preserving line breaks. JSON5 writes single quotes and still escapes line breaks.
Trait Implementations§
Source§impl Clone for StringStyle
impl Clone for StringStyle
Source§fn clone(&self) -> StringStyle
fn clone(&self) -> StringStyle
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 StringStyle
Source§impl Debug for StringStyle
impl Debug for StringStyle
impl Eq for StringStyle
Source§impl<'ʄ> Facet<'ʄ> for StringStyle
impl<'ʄ> Facet<'ʄ> for StringStyle
Source§impl PartialEq for StringStyle
impl PartialEq for StringStyle
impl StructuralPartialEq for StringStyle
Auto Trait Implementations§
impl Freeze for StringStyle
impl RefUnwindSafe for StringStyle
impl Send for StringStyle
impl Sync for StringStyle
impl Unpin for StringStyle
impl UnsafeUnpin for StringStyle
impl UnwindSafe for StringStyle
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.