pub struct Indent {
pub use_spaces: bool,
pub width: usize,
}Expand description
How a document is indented: the Tab key’s character and the tab width (also how wide a tab character is drawn).
Fields§
§use_spaces: boolThe Tab key inserts spaces instead of a tab character.
width: usizeCells per indent level and per tab stop.
Trait Implementations§
impl Copy for Indent
Source§impl<'de> Deserialize<'de> for Indent
impl<'de> Deserialize<'de> for Indent
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
impl Eq for Indent
impl StructuralPartialEq for Indent
Auto Trait Implementations§
impl Freeze for Indent
impl RefUnwindSafe for Indent
impl Send for Indent
impl Sync for Indent
impl Unpin for Indent
impl UnsafeUnpin for Indent
impl UnwindSafe for Indent
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