Enum biome_formatter::IndentStyle
source · pub enum IndentStyle {
Tab,
Space,
}
Variants§
Implementations§
source§impl IndentStyle
impl IndentStyle
pub const DEFAULT_SPACES: u8 = 2u8
sourcepub const fn is_tab(&self) -> bool
pub const fn is_tab(&self) -> bool
Returns true
if this is an IndentStyle::Tab.
sourcepub const fn is_space(&self) -> bool
pub const fn is_space(&self) -> bool
Returns true
if this is an IndentStyle::Space.
Trait Implementations§
source§impl Clone for IndentStyle
impl Clone for IndentStyle
source§fn clone(&self) -> IndentStyle
fn clone(&self) -> IndentStyle
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 IndentStyle
impl Debug for IndentStyle
source§impl Default for IndentStyle
impl Default for IndentStyle
source§fn default() -> IndentStyle
fn default() -> IndentStyle
Returns the “default value” for a type. Read more
source§impl Display for IndentStyle
impl Display for IndentStyle
source§impl FromStr for IndentStyle
impl FromStr for IndentStyle
source§impl Hash for IndentStyle
impl Hash for IndentStyle
source§impl PartialEq for IndentStyle
impl PartialEq for IndentStyle
source§fn eq(&self, other: &IndentStyle) -> bool
fn eq(&self, other: &IndentStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for IndentStyle
impl Eq for IndentStyle
impl StructuralPartialEq for IndentStyle
Auto Trait Implementations§
impl Freeze for IndentStyle
impl RefUnwindSafe for IndentStyle
impl Send for IndentStyle
impl Sync for IndentStyle
impl Unpin for IndentStyle
impl UnwindSafe for IndentStyle
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.