pub enum StyleCommand {
AddStyle {
start: usize,
end: usize,
style_id: StyleId,
},
RemoveStyle {
start: usize,
end: usize,
style_id: StyleId,
},
Fold {
start_line: usize,
end_line: usize,
},
Unfold {
start_line: usize,
},
UnfoldAll,
UpdateBracketMatchHighlights,
ClearBracketMatchHighlights,
}Expand description
Style and folding commands
Variants§
AddStyle
Add style interval
Fields
RemoveStyle
Remove style interval
Fields
Fold
Fold code block
Fields
Unfold
Unfold code block
UnfoldAll
Unfold all folds
UpdateBracketMatchHighlights
Recompute bracket-match highlights for the current cursor/selections.
This updates the derived style layer [StyleLayerId::BRACKET_MATCHES].
ClearBracketMatchHighlights
Clear bracket-match highlights (removes [StyleLayerId::BRACKET_MATCHES]).
Trait Implementations§
Source§impl Clone for StyleCommand
impl Clone for StyleCommand
Source§fn clone(&self) -> StyleCommand
fn clone(&self) -> StyleCommand
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 moreSource§impl Debug for StyleCommand
impl Debug for StyleCommand
impl Eq for StyleCommand
Source§impl PartialEq for StyleCommand
impl PartialEq for StyleCommand
Source§fn eq(&self, other: &StyleCommand) -> bool
fn eq(&self, other: &StyleCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StyleCommand
Auto Trait Implementations§
impl Freeze for StyleCommand
impl RefUnwindSafe for StyleCommand
impl Send for StyleCommand
impl Sync for StyleCommand
impl Unpin for StyleCommand
impl UnsafeUnpin for StyleCommand
impl UnwindSafe for StyleCommand
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