Struct modalkit::editing::store::DigraphStore
source · pub struct DigraphStore { /* private fields */ }
Expand description
Storage for mapping digraphs onto their characters.
Digraphs are convenient shorthand for entering characters usually not found on keyboards using two-character combinations of the characters found on QWERTY keyboard layouts.
Implementations§
source§impl DigraphStore
impl DigraphStore
sourcepub fn rfc1345() -> Self
pub fn rfc1345() -> Self
Create a new instance initialized with the digraphs specified in RFC1345.
sourcepub fn vim() -> Self
pub fn vim() -> Self
Create a new instance initialized with the digraphs used in Vim, which uses the RFC1345 digraphs plus some of its own.
Trait Implementations§
source§impl Default for DigraphStore
impl Default for DigraphStore
source§impl<'a> FromIterator<&'a ((char, char), char)> for DigraphStore
impl<'a> FromIterator<&'a ((char, char), char)> for DigraphStore
source§impl FromIterator<((char, char), char)> for DigraphStore
impl FromIterator<((char, char), char)> for DigraphStore
Auto Trait Implementations§
impl Freeze for DigraphStore
impl RefUnwindSafe for DigraphStore
impl Send for DigraphStore
impl Sync for DigraphStore
impl Unpin for DigraphStore
impl UnwindSafe for DigraphStore
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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.