Struct SetExtmarkOptsBuilder
pub struct SetExtmarkOptsBuilder(SetExtmarkOpts);Tuple Fields§
§0: SetExtmarkOptsImplementations§
§impl SetExtmarkOptsBuilder
impl SetExtmarkOptsBuilder
pub 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
pub 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
pub 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
pub 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
pub 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
pub 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.
pub fn ephemeral(&mut self, ephemeral: bool) -> &mut SetExtmarkOptsBuilder
pub fn ephemeral(&mut self, ephemeral: bool) -> &mut SetExtmarkOptsBuilder
For use with
pub 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
pub 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.
pub 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.
pub 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
pub 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.
pub 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.
pub 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
pub 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
pub 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.
pub 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
pub 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
pub 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
pub 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
pub fn url(&mut self, url: &str) -> &mut SetExtmarkOptsBuilder
pub fn url(&mut self, url: &str) -> &mut SetExtmarkOptsBuilder
A URL to associate with this extmark.
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>,
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.
pub 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
pub 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,
pub 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.
pub 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
pub 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
pub 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.
pub 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.
pub 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§
§impl Clone for SetExtmarkOptsBuilder
impl Clone for SetExtmarkOptsBuilder
§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 more§impl Default for SetExtmarkOptsBuilder
impl Default for SetExtmarkOptsBuilder
§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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§type Error = Infallible
type Error = Infallible
Result.§fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
Result.§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg] or
a color-specific method, such as [OwoColorize::green], Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg] or
a color-specific method, such as [OwoColorize::on_yellow], Read more