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,
}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
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 · 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
Source§impl PartialEq for StyleCommand
impl PartialEq for StyleCommand
impl Eq for StyleCommand
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 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