pub struct MenuTextMatch {
pub lead_offset: usize,
pub matching_string: String,
pub replaceable_string: String,
}Expand description
MenuTextMatch: where a trigger matched the text before the caret: the
leadOffset (UTF-16) where the match starts, the query after the
trigger (matchingString), and the text, trigger included, that an
option replaces (replaceableString).
Fields§
§lead_offset: usize§matching_string: String§replaceable_string: StringTrait Implementations§
Source§impl Clone for MenuTextMatch
impl Clone for MenuTextMatch
Source§impl Debug for MenuTextMatch
impl Debug for MenuTextMatch
impl Eq for MenuTextMatch
Source§impl PartialEq for MenuTextMatch
impl PartialEq for MenuTextMatch
impl StructuralPartialEq for MenuTextMatch
Auto Trait Implementations§
impl Forget for MenuTextMatch
impl Freeze for MenuTextMatch
impl Move for MenuTextMatch
impl RefUnwindSafe for MenuTextMatch
impl Send for MenuTextMatch
impl Sync for MenuTextMatch
impl Unpin for MenuTextMatch
impl UnsafeUnpin for MenuTextMatch
impl UnwindSafe for MenuTextMatch
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