pub struct NativeFormatIntents {
pub indent: bool,
pub reflow: bool,
}Expand description
RF.5b: which formatting intents the buffer handles natively.
A struct rather than two loose bools so a third intent cannot be added to one call site and forgotten at the other.
Fields§
§indent: bool= (format.indent) resolves to the native tree-sitter indenter.
reflow: boolgq / gw (format.reflow) resolve to the native reflow engine.
Trait Implementations§
Source§impl Clone for NativeFormatIntents
impl Clone for NativeFormatIntents
Source§fn clone(&self) -> NativeFormatIntents
fn clone(&self) -> NativeFormatIntents
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NativeFormatIntents
Source§impl Debug for NativeFormatIntents
impl Debug for NativeFormatIntents
Source§impl Default for NativeFormatIntents
impl Default for NativeFormatIntents
impl Eq for NativeFormatIntents
Source§impl PartialEq for NativeFormatIntents
impl PartialEq for NativeFormatIntents
impl StructuralPartialEq for NativeFormatIntents
Auto Trait Implementations§
impl Freeze for NativeFormatIntents
impl RefUnwindSafe for NativeFormatIntents
impl Send for NativeFormatIntents
impl Sync for NativeFormatIntents
impl Unpin for NativeFormatIntents
impl UnsafeUnpin for NativeFormatIntents
impl UnwindSafe for NativeFormatIntents
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
Compare self to
key and return true if they are equal.