Enum biome_formatter::QuoteStyle
source · pub enum QuoteStyle {
Double,
Single,
}
Variants§
Implementations§
source§impl QuoteStyle
impl QuoteStyle
pub fn as_char(&self) -> char
pub fn as_string(&self) -> &str
sourcepub fn as_escaped(&self) -> &str
pub fn as_escaped(&self) -> &str
Returns the quote, prepended with a backslash (escaped)
pub fn as_bytes(&self) -> u8
sourcepub fn as_html_entity(&self) -> &str
pub fn as_html_entity(&self) -> &str
Returns the quote in HTML entity
pub const fn is_double(&self) -> bool
Trait Implementations§
source§impl Clone for QuoteStyle
impl Clone for QuoteStyle
source§fn clone(&self) -> QuoteStyle
fn clone(&self) -> QuoteStyle
Returns a copy of the value. Read more
1.0.0 · 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 QuoteStyle
impl Debug for QuoteStyle
source§impl Default for QuoteStyle
impl Default for QuoteStyle
source§fn default() -> QuoteStyle
fn default() -> QuoteStyle
Returns the “default value” for a type. Read more
source§impl Deserializable for QuoteStyle
impl Deserializable for QuoteStyle
source§fn deserialize(
value: &impl DeserializableValue,
name: &str,
diagnostics: &mut Vec<DeserializationDiagnostic>
) -> Option<Self>
fn deserialize( value: &impl DeserializableValue, name: &str, diagnostics: &mut Vec<DeserializationDiagnostic> ) -> Option<Self>
Returns the deserialized form of
value
, or None
if it failed.
Any diagnostics emitted during deserialization are appended to diagnostics
.
name
corresponds to the name used in a diagnostic to designate the deserialized value.source§impl Display for QuoteStyle
impl Display for QuoteStyle
source§impl From<QuoteStyle> for Quote
impl From<QuoteStyle> for Quote
source§fn from(quote: QuoteStyle) -> Self
fn from(quote: QuoteStyle) -> Self
Converts to this type from the input type.
source§impl FromStr for QuoteStyle
impl FromStr for QuoteStyle
source§impl Hash for QuoteStyle
impl Hash for QuoteStyle
source§impl Merge for QuoteStyle
impl Merge for QuoteStyle
source§fn merge_with(&mut self, other: Self)
fn merge_with(&mut self, other: Self)
source§impl PartialEq for QuoteStyle
impl PartialEq for QuoteStyle
source§fn eq(&self, other: &QuoteStyle) -> bool
fn eq(&self, other: &QuoteStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for QuoteStyle
impl Eq for QuoteStyle
impl StructuralPartialEq for QuoteStyle
Auto Trait Implementations§
impl Freeze for QuoteStyle
impl RefUnwindSafe for QuoteStyle
impl Send for QuoteStyle
impl Sync for QuoteStyle
impl Unpin for QuoteStyle
impl UnwindSafe for QuoteStyle
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<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.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.