pub trait GhostTextStateManager: Send + Sync {
// Required methods
fn display(&mut self, ghost_text: GhostText);
fn dismiss(&mut self);
fn accept(&mut self) -> Option<GhostText>;
fn accept_partial(&mut self, mode: PartialAcceptanceMode) -> Option<String>;
fn update(&mut self, new_ghost_text: GhostText);
fn get_state(&self) -> &GhostTextState;
fn is_displayed(&self) -> bool;
}Expand description
Ghost text state manager
Required Methods§
Sourcefn accept_partial(&mut self, mode: PartialAcceptanceMode) -> Option<String>
fn accept_partial(&mut self, mode: PartialAcceptanceMode) -> Option<String>
Accept ghost text partially
Sourcefn get_state(&self) -> &GhostTextState
fn get_state(&self) -> &GhostTextState
Get current ghost text state
Sourcefn is_displayed(&self) -> bool
fn is_displayed(&self) -> bool
Check if ghost text is currently displayed