Struct MatchingBracketHighlighter
pub struct MatchingBracketHighlighter { /* private fields */ }
Highlight matching bracket when typed or cursor moved on.
Implementations
impl MatchingBracketHighlighter
fn new() -> SelfConstructor
Trait Implementations
impl Default for MatchingBracketHighlighter
fn default() -> MatchingBracketHighlighter
impl Highlighter for MatchingBracketHighlighter
fn highlight<'l>(&self, line: &'l str, _pos: usize) -> Cow<'l, str>fn highlight_char(&self, line: &str, pos: usize, kind: CmdKind) -> bool
Auto Trait Implementations
impl !Freeze for MatchingBracketHighlighter
impl !RefUnwindSafe for MatchingBracketHighlighter
impl !Sync for MatchingBracketHighlighter
impl Send for MatchingBracketHighlighter
impl Unpin for MatchingBracketHighlighter
impl UnsafeUnpin for MatchingBracketHighlighter
impl UnwindSafe for MatchingBracketHighlighter
Blanket Implementations
impl<T> Any for MatchingBracketHighlighter
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for MatchingBracketHighlighter
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for MatchingBracketHighlighter
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for MatchingBracketHighlighter
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for MatchingBracketHighlighter
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for MatchingBracketHighlighter
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for MatchingBracketHighlighter
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>