pub struct HighlightKeyInput<'a> {
pub file: FileId,
pub side: DiffSide,
pub source_line: u32,
pub text: &'a str,
pub syntax: Option<&'a str>,
pub theme: &'a str,
}Expand description
Input fields used to create a HighlightKey.
Fields§
§file: FileIdFile containing the row.
side: DiffSideDiff side to highlight.
source_line: u32One-based source line number.
text: &'a strSource text.
syntax: Option<&'a str>Optional syntax override.
theme: &'a strTheme name.
Trait Implementations§
Source§impl<'a> Clone for HighlightKeyInput<'a>
impl<'a> Clone for HighlightKeyInput<'a>
Source§fn clone(&self) -> HighlightKeyInput<'a>
fn clone(&self) -> HighlightKeyInput<'a>
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 moreimpl<'a> Copy for HighlightKeyInput<'a>
Auto Trait Implementations§
impl<'a> Freeze for HighlightKeyInput<'a>
impl<'a> RefUnwindSafe for HighlightKeyInput<'a>
impl<'a> Send for HighlightKeyInput<'a>
impl<'a> Sync for HighlightKeyInput<'a>
impl<'a> Unpin for HighlightKeyInput<'a>
impl<'a> UnsafeUnpin for HighlightKeyInput<'a>
impl<'a> UnwindSafe for HighlightKeyInput<'a>
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