pub struct SetExtmarkOptsBuilder(/* private fields */);Implementations§
Source§impl SetExtmarkOptsBuilder
impl SetExtmarkOptsBuilder
Sourcepub fn conceal(&mut self, conceal: Option<char>) -> &mut SetExtmarkOptsBuilder
pub fn conceal(&mut self, conceal: Option<char>) -> &mut SetExtmarkOptsBuilder
Enable concealing symilar to :syn-conceal. If a character is supplied
Sourcepub fn conceal_lines(&mut self, conceal_lines: ()) -> &mut SetExtmarkOptsBuilder
pub fn conceal_lines(&mut self, conceal_lines: ()) -> &mut SetExtmarkOptsBuilder
When called, lines in the range are not drawn at all (according to
Sourcepub fn cursorline_hl_group<Hl>(
&mut self,
cursorline_hl_group: Hl,
) -> &mut SetExtmarkOptsBuilderwhere
Hl: HlGroup,
pub fn cursorline_hl_group<Hl>(
&mut self,
cursorline_hl_group: Hl,
) -> &mut SetExtmarkOptsBuilderwhere
Hl: HlGroup,
Name of the highlight group used to highlight the line when the cursor
Sourcepub fn end_col(&mut self, end_col: usize) -> &mut SetExtmarkOptsBuilder
pub fn end_col(&mut self, end_col: usize) -> &mut SetExtmarkOptsBuilder
Ending line of the mark. 0-indexed and exclusive.
pub fn end_line(&mut self, end_line: u32) -> &mut SetExtmarkOptsBuilder
Sourcepub fn end_right_gravity(
&mut self,
end_right_gravity: bool,
) -> &mut SetExtmarkOptsBuilder
pub fn end_right_gravity( &mut self, end_right_gravity: bool, ) -> &mut SetExtmarkOptsBuilder
Indicates the direction the extmark’s end position (if it exists) will
Sourcepub fn end_row(&mut self, end_row: usize) -> &mut SetExtmarkOptsBuilder
pub fn end_row(&mut self, end_row: usize) -> &mut SetExtmarkOptsBuilder
Ending line of the mark. 0-indexed and inclusive.
Sourcepub fn ephemeral(&mut self, ephemeral: bool) -> &mut SetExtmarkOptsBuilder
pub fn ephemeral(&mut self, ephemeral: bool) -> &mut SetExtmarkOptsBuilder
For use with
Sourcepub fn hl_eol(&mut self, hl_eol: bool) -> &mut SetExtmarkOptsBuilder
pub fn hl_eol(&mut self, hl_eol: bool) -> &mut SetExtmarkOptsBuilder
Whether to continue the highlight for the rest of the screen line for
Sourcepub fn hl_group<Hl>(&mut self, hl_group: Hl) -> &mut SetExtmarkOptsBuilderwhere
Hl: SetExtmarkHlGroup,
pub fn hl_group<Hl>(&mut self, hl_group: Hl) -> &mut SetExtmarkOptsBuilderwhere
Hl: SetExtmarkHlGroup,
Name of the highlight group used to highlight this mark.
Sourcepub fn hl_mode(&mut self, hl_mode: ExtmarkHlMode) -> &mut SetExtmarkOptsBuilder
pub fn hl_mode(&mut self, hl_mode: ExtmarkHlMode) -> &mut SetExtmarkOptsBuilder
Controls how highlights are combined with the highlights of the text.
Sourcepub fn id(&mut self, id: u32) -> &mut SetExtmarkOptsBuilder
pub fn id(&mut self, id: u32) -> &mut SetExtmarkOptsBuilder
Id of the extmark to edit.
pub fn invalidate(&mut self, invalidate: bool) -> &mut SetExtmarkOptsBuilder
Sourcepub fn line_hl_group<Hl>(
&mut self,
line_hl_group: Hl,
) -> &mut SetExtmarkOptsBuilderwhere
Hl: HlGroup,
pub fn line_hl_group<Hl>(
&mut self,
line_hl_group: Hl,
) -> &mut SetExtmarkOptsBuilderwhere
Hl: HlGroup,
Name of the highlight group used to highlight the whole line.
Sourcepub fn number_hl_group<Hl>(
&mut self,
number_hl_group: Hl,
) -> &mut SetExtmarkOptsBuilderwhere
Hl: HlGroup,
pub fn number_hl_group<Hl>(
&mut self,
number_hl_group: Hl,
) -> &mut SetExtmarkOptsBuilderwhere
Hl: HlGroup,
Name of the highlight group used to highlight the number column.
Sourcepub fn priority(&mut self, priority: u32) -> &mut SetExtmarkOptsBuilder
pub fn priority(&mut self, priority: u32) -> &mut SetExtmarkOptsBuilder
A priority value for the highlight group. For example, treesitter
Sourcepub fn right_gravity(
&mut self,
right_gravity: bool,
) -> &mut SetExtmarkOptsBuilder
pub fn right_gravity( &mut self, right_gravity: bool, ) -> &mut SetExtmarkOptsBuilder
Indicates the direction the extmark will be shifted in when new text is
pub fn scoped(&mut self, scoped: bool) -> &mut SetExtmarkOptsBuilder
Sourcepub fn sign_hl_group<Hl>(
&mut self,
sign_hl_group: Hl,
) -> &mut SetExtmarkOptsBuilderwhere
Hl: HlGroup,
pub fn sign_hl_group<Hl>(
&mut self,
sign_hl_group: Hl,
) -> &mut SetExtmarkOptsBuilderwhere
Hl: HlGroup,
Name of the highlight group used to highlight the sign column text.
Sourcepub fn sign_text(&mut self, sign_text: &str) -> &mut SetExtmarkOptsBuilder
pub fn sign_text(&mut self, sign_text: &str) -> &mut SetExtmarkOptsBuilder
Text to display in the sign column. Should take up 1-2 display cells.
pub fn spell(&mut self, spell: bool) -> &mut SetExtmarkOptsBuilder
Sourcepub fn strict(&mut self, strict: bool) -> &mut SetExtmarkOptsBuilder
pub fn strict(&mut self, strict: bool) -> &mut SetExtmarkOptsBuilder
Whether the extmark should not be placed if the line or column value is
Sourcepub fn ui_watched(&mut self, ui_watched: bool) -> &mut SetExtmarkOptsBuilder
pub fn ui_watched(&mut self, ui_watched: bool) -> &mut SetExtmarkOptsBuilder
Whether the mark should be drawn by an external UI. When true the UI
Sourcepub fn undo_restore(&mut self, undo_restore: bool) -> &mut SetExtmarkOptsBuilder
pub fn undo_restore(&mut self, undo_restore: bool) -> &mut SetExtmarkOptsBuilder
Whether to restore the exact position of the mark if text around the
Sourcepub fn url(&mut self, url: &str) -> &mut SetExtmarkOptsBuilder
pub fn url(&mut self, url: &str) -> &mut SetExtmarkOptsBuilder
A URL to associate with this extmark.
Sourcepub fn virt_lines<Txt, Hl, Cnk, ChunkyCnk>(
&mut self,
virt_lines: ChunkyCnk,
) -> &mut SetExtmarkOptsBuilderwhere
Txt: Into<String>,
Hl: StringOrListOfStrings,
Cnk: IntoIterator<Item = (Txt, Hl)>,
ChunkyCnk: IntoIterator<Item = Cnk>,
pub fn virt_lines<Txt, Hl, Cnk, ChunkyCnk>(
&mut self,
virt_lines: ChunkyCnk,
) -> &mut SetExtmarkOptsBuilderwhere
Txt: Into<String>,
Hl: StringOrListOfStrings,
Cnk: IntoIterator<Item = (Txt, Hl)>,
ChunkyCnk: IntoIterator<Item = Cnk>,
Virtual lines to add next to the mark.
Sourcepub fn virt_lines_above(
&mut self,
virt_lines_above: bool,
) -> &mut SetExtmarkOptsBuilder
pub fn virt_lines_above( &mut self, virt_lines_above: bool, ) -> &mut SetExtmarkOptsBuilder
Whether to place virtual lines above the buffer line containing the
Sourcepub fn virt_lines_leftcol(
&mut self,
virt_lines_leftcol: bool,
) -> &mut SetExtmarkOptsBuilder
pub fn virt_lines_leftcol( &mut self, virt_lines_leftcol: bool, ) -> &mut SetExtmarkOptsBuilder
Whether to place extmarks in the leftmost column of the ewindow,
Sourcepub fn virt_lines_overflow(
&mut self,
virt_lines_overflow: VirtLinesOverflow,
) -> &mut SetExtmarkOptsBuilder
pub fn virt_lines_overflow( &mut self, virt_lines_overflow: VirtLinesOverflow, ) -> &mut SetExtmarkOptsBuilder
Controls how to handle virtual lines wider than the window.
Sourcepub fn virt_text<Txt, Hl, Cnk>(
&mut self,
virt_text: Cnk,
) -> &mut SetExtmarkOptsBuilder
pub fn virt_text<Txt, Hl, Cnk>( &mut self, virt_text: Cnk, ) -> &mut SetExtmarkOptsBuilder
Virtual text to link to this mark. Every (text, highlights) tuple
Sourcepub fn virt_text_hide(
&mut self,
virt_text_hide: bool,
) -> &mut SetExtmarkOptsBuilder
pub fn virt_text_hide( &mut self, virt_text_hide: bool, ) -> &mut SetExtmarkOptsBuilder
Whether to hide the virtual text when the background text is selected
Sourcepub fn virt_text_pos(
&mut self,
virt_text_pos: ExtmarkVirtTextPosition,
) -> &mut SetExtmarkOptsBuilder
pub fn virt_text_pos( &mut self, virt_text_pos: ExtmarkVirtTextPosition, ) -> &mut SetExtmarkOptsBuilder
Position of the virtual text.
Sourcepub fn virt_text_repeat_linebreak(
&mut self,
virt_text_repeat_linebreak: bool,
) -> &mut SetExtmarkOptsBuilder
pub fn virt_text_repeat_linebreak( &mut self, virt_text_repeat_linebreak: bool, ) -> &mut SetExtmarkOptsBuilder
Whether to repeat the virtual text on wrapped lines.
Sourcepub fn virt_text_win_col(
&mut self,
virt_text_win_col: u32,
) -> &mut SetExtmarkOptsBuilder
pub fn virt_text_win_col( &mut self, virt_text_win_col: u32, ) -> &mut SetExtmarkOptsBuilder
Position the virtual text at a fixed window column (starting from the
pub fn build(&mut self) -> SetExtmarkOpts
Trait Implementations§
Source§impl Clone for SetExtmarkOptsBuilder
impl Clone for SetExtmarkOptsBuilder
Source§fn clone(&self) -> SetExtmarkOptsBuilder
fn clone(&self) -> SetExtmarkOptsBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for SetExtmarkOptsBuilder
impl Default for SetExtmarkOptsBuilder
Source§fn default() -> SetExtmarkOptsBuilder
fn default() -> SetExtmarkOptsBuilder
Auto Trait Implementations§
impl Freeze for SetExtmarkOptsBuilder
impl RefUnwindSafe for SetExtmarkOptsBuilder
impl !Send for SetExtmarkOptsBuilder
impl !Sync for SetExtmarkOptsBuilder
impl Unpin for SetExtmarkOptsBuilder
impl UnwindSafe for SetExtmarkOptsBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§type Error = Infallible
type Error = Infallible
Result.Source§fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
Result.