Enum pepper::events::BufferEditMutGuard
source · pub enum BufferEditMutGuard<'a> {
TextInserts(BufferTextInsertsMutGuard<'a>),
RangeDeletes(BufferRangeDeletesMutGuard<'a>),
}
Variants§
TextInserts(BufferTextInsertsMutGuard<'a>)
RangeDeletes(BufferRangeDeletesMutGuard<'a>)
Implementations§
source§impl<'a> BufferEditMutGuard<'a>
impl<'a> BufferEditMutGuard<'a>
pub fn new(events: &'a mut EditorEventWriter, handle: BufferHandle) -> Self
pub fn to_text_inserts(&mut self) -> &mut BufferTextInsertsMutGuard<'a>
pub fn to_range_deletes(&mut self) -> &mut BufferRangeDeletesMutGuard<'a>
Trait Implementations§
source§impl<'a> From<BufferRangeDeletesMutGuard<'a>> for BufferEditMutGuard<'a>
impl<'a> From<BufferRangeDeletesMutGuard<'a>> for BufferEditMutGuard<'a>
source§fn from(other: BufferRangeDeletesMutGuard<'a>) -> Self
fn from(other: BufferRangeDeletesMutGuard<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<BufferTextInsertsMutGuard<'a>> for BufferEditMutGuard<'a>
impl<'a> From<BufferTextInsertsMutGuard<'a>> for BufferEditMutGuard<'a>
source§fn from(other: BufferTextInsertsMutGuard<'a>) -> Self
fn from(other: BufferTextInsertsMutGuard<'a>) -> Self
Converts to this type from the input type.