pub struct DefaultAutoPair { /* private fields */ }Expand description
Auto pair complete that depend on a map of pairs
Implementations§
Source§impl DefaultAutoPair
impl DefaultAutoPair
Sourcepub fn with_pairs(pairs: HashMap<char, char>) -> Self
pub fn with_pairs(pairs: HashMap<char, char>) -> Self
Create instance of DefaultAutoPair with custom pairs
Trait Implementations§
Source§impl AutoPair for DefaultAutoPair
impl AutoPair for DefaultAutoPair
Source§fn complete_pair(&self, buffer: &mut StyledBuffer)
fn complete_pair(&self, buffer: &mut StyledBuffer)
Complete the pair if it exists on the pairs map and cursor is at the end
Source§impl Default for DefaultAutoPair
Create instance of DefaultAutoPair with default pairs DEFAULT_PAIRS
impl Default for DefaultAutoPair
Create instance of DefaultAutoPair with default pairs DEFAULT_PAIRS
Auto Trait Implementations§
impl Freeze for DefaultAutoPair
impl RefUnwindSafe for DefaultAutoPair
impl Send for DefaultAutoPair
impl Sync for DefaultAutoPair
impl Unpin for DefaultAutoPair
impl UnwindSafe for DefaultAutoPair
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