pub struct UiDiffFoldUnchanged;Expand description
Fold the unchanged regions of a diff so only the changes (±
UiDiffContext lines) remain visible — vimdiff’s
foldmethod=diff, VS Code’s “Collapse Unchanged Regions”.
true (default) — every diff session gets a closed
UnchangedFoldSource on each side; zR / zo expand a region
to read the surrounding context, zM re-collapses.
false — diffs open fully expanded (the unchanged code stays
visible). Hunk folds (za on a change) are unaffected — those
are a separate, open-by-default source.
Implementations§
Source§impl UiDiffFoldUnchanged
impl UiDiffFoldUnchanged
Sourcepub fn build_spec() -> Option<bool>
pub fn build_spec() -> Option<bool>
Build the runtime spec for this declaration.
Used by the registry’s self-registration boot
path; not generally called by hand. Direct
construction of Option<T> is the macro’s
internal-only path – consumer code uses
config.get_typed::<#name_ident>() to read
and config.set_typed::<#name_ident>(...) to
write.
Trait Implementations§
Source§impl HasGroup for UiDiffFoldUnchanged
impl HasGroup for UiDiffFoldUnchanged
Source§const GROUP_NAME: &'static str = <lattice_config::Display as ::lattice_config::OptionGroup>::NAME
const GROUP_NAME: &'static str = <lattice_config::Display as ::lattice_config::OptionGroup>::NAME
"editor", "lsp", …). The macro
pulls this from the group = SomeGroup; directive at the
declaration block’s head.Source§impl OptionDecl for UiDiffFoldUnchanged
impl OptionDecl for UiDiffFoldUnchanged
Source§const NAME: &'static str = UiDiffFoldUnchanged
const NAME: &'static str = UiDiffFoldUnchanged
:set <NAME>=…,
TOML keys, completion candidates, :describe-option.
Internal access is type-driven. The macro derives this
from the option’s identifier (with namespace prefix when
declared via mode_options!); manually-typed NAMEs are
not supported for built-in options.Source§const DOC: &'static str = UiDiffFoldUnchanged
const DOC: &'static str = UiDiffFoldUnchanged
:describe-option, the :customize
form’s per-row help, and :apropos results.Source§const CUSTOMIZABLE: bool = true
const CUSTOMIZABLE: bool = true
true (the default) ⇒ option
appears in :set autocomplete + the :customize group
view. false ⇒ plugin / engine-internal state, hidden
from user surfaces. Equivalent of emacs’s defvar vs
defcustom. (See mode-architecture.md §6.5.3.)Source§type Value = bool
type Value = bool
bool, i64, String, plus any
domain enum that impls [OptionType].Source§fn default_value() -> Self::Value
fn default_value() -> Self::Value
const) so non-const-constructible types like String
can be defaults.Auto Trait Implementations§
impl Freeze for UiDiffFoldUnchanged
impl RefUnwindSafe for UiDiffFoldUnchanged
impl Send for UiDiffFoldUnchanged
impl Sync for UiDiffFoldUnchanged
impl Unpin for UiDiffFoldUnchanged
impl UnsafeUnpin for UiDiffFoldUnchanged
impl UnwindSafe for UiDiffFoldUnchanged
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more