pub enum IndentSize {
Auto,
Fixed(usize),
}Expand description
Indent size configuration: either a fixed number or “auto” for auto-detection
Variants§
Auto
Auto-detect indent size from the first indented line
Fixed(usize)
Fixed indent size (number of spaces)
Trait Implementations§
Source§impl Clone for IndentSize
impl Clone for IndentSize
Source§fn clone(&self) -> IndentSize
fn clone(&self) -> IndentSize
Returns a duplicate 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 IndentSize
impl Debug for IndentSize
Source§impl Default for IndentSize
impl Default for IndentSize
Source§fn default() -> IndentSize
fn default() -> IndentSize
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IndentSize
impl<'de> Deserialize<'de> for IndentSize
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for IndentSize
impl Display for IndentSize
Source§impl JsonSchema for IndentSize
impl JsonSchema for IndentSize
Source§fn json_schema(_generator: &mut SchemaGenerator) -> Schema
fn json_schema(_generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§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 IndentSize
impl PartialEq for IndentSize
impl Copy for IndentSize
impl Eq for IndentSize
impl StructuralPartialEq for IndentSize
Auto Trait Implementations§
impl Freeze for IndentSize
impl RefUnwindSafe for IndentSize
impl Send for IndentSize
impl Sync for IndentSize
impl Unpin for IndentSize
impl UnwindSafe for IndentSize
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
Checks if this value is equivalent to the given key. Read more