pub enum FoldMethod {
Manual,
Expr,
Marker,
}Expand description
Fold method. Controls how folds are automatically generated.
Matches vim’s :set foldmethod.
Variants§
Manual
No automatic folds; only manual zf folds. Matches vim’s manual.
Expr
Automatically generate folds from the tree-sitter parse tree using
per-grammar folds.scm queries. Matches vim’s expr/syntax.
Default — hjkl diverges from vim’s manual default; functions /
if / match / blocks fold automatically when a folds.scm ships.
Marker
Marker folds via {{{ / }}} comment delimiters. Matches vim’s
marker. Parsed but not yet active (P4). Accepted without error.
Trait Implementations§
Source§impl Clone for FoldMethod
impl Clone for FoldMethod
Source§fn clone(&self) -> FoldMethod
fn clone(&self) -> FoldMethod
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 FoldMethod
Source§impl Debug for FoldMethod
impl Debug for FoldMethod
Source§impl Default for FoldMethod
impl Default for FoldMethod
Source§fn default() -> FoldMethod
fn default() -> FoldMethod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FoldMethod
impl<'de> Deserialize<'de> for FoldMethod
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 FoldMethod
Source§impl Hash for FoldMethod
impl Hash for FoldMethod
Source§impl PartialEq for FoldMethod
impl PartialEq for FoldMethod
Source§fn eq(&self, other: &FoldMethod) -> bool
fn eq(&self, other: &FoldMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FoldMethod
impl Serialize for FoldMethod
impl StructuralPartialEq for FoldMethod
Auto Trait Implementations§
impl Freeze for FoldMethod
impl RefUnwindSafe for FoldMethod
impl Send for FoldMethod
impl Sync for FoldMethod
impl Unpin for FoldMethod
impl UnsafeUnpin for FoldMethod
impl UnwindSafe for FoldMethod
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