#[non_exhaustive]pub enum IndentGlyphStyle {
Auto,
Fixed,
None,
}Expand description
Controls when /< / /> indent-offset glyphs are emitted to push content to visual indent 0.
Auto(default): apply glyphs when content would overflowwrap_widthat its natural indent, or when the indent depth exceeds half ofwrap_width.Fixed: always apply glyphs once the indent depth exceeds a threshold, without waiting for overflow.None: never apply glyphs; content may overflowwrap_width.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto
Apply glyphs reactively on overflow, or proactively at half of wrap_width.
Fixed
Always apply glyphs past a fixed indent threshold, regardless of overflow.
None
Never apply indent-offset glyphs.
Trait Implementations§
Source§impl Clone for IndentGlyphStyle
impl Clone for IndentGlyphStyle
Source§fn clone(&self) -> IndentGlyphStyle
fn clone(&self) -> IndentGlyphStyle
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 IndentGlyphStyle
impl Debug for IndentGlyphStyle
Source§impl Default for IndentGlyphStyle
impl Default for IndentGlyphStyle
Source§fn default() -> IndentGlyphStyle
fn default() -> IndentGlyphStyle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IndentGlyphStyle
impl<'de> Deserialize<'de> for IndentGlyphStyle
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 FromStr for IndentGlyphStyle
impl FromStr for IndentGlyphStyle
Source§impl PartialEq for IndentGlyphStyle
impl PartialEq for IndentGlyphStyle
Source§impl Serialize for IndentGlyphStyle
impl Serialize for IndentGlyphStyle
impl Copy for IndentGlyphStyle
impl Eq for IndentGlyphStyle
impl StructuralPartialEq for IndentGlyphStyle
Auto Trait Implementations§
impl Freeze for IndentGlyphStyle
impl RefUnwindSafe for IndentGlyphStyle
impl Send for IndentGlyphStyle
impl Sync for IndentGlyphStyle
impl Unpin for IndentGlyphStyle
impl UnsafeUnpin for IndentGlyphStyle
impl UnwindSafe for IndentGlyphStyle
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.