GeezerVison is showing rustpython.github.io — rustpython::shell::rustyline_helper::ShellHelper - Rust
Fieldsvm: &'vm VirtualMachinescope: ScopeMethodsTrait ImplementationsTakes the currently edited line with the cursor position and returns the start position and the completion candidates for the partial word to be completed. Read more
fn update(&self, line: &mut LineBuffer, start: usize, elected: &str)
Updates the edited line with the elected candidate.
Takes the currently edited line with the cursor position and returns the highlighted version (with ANSI color). Read more
fn highlight_prompt<'b, 's, 'p>( &'s self, prompt: &'p str, default: bool ) -> Cow<'b, str> where 's: 'b, 'p: 'b,
Takes the prompt and returns the highlighted version (with ANSI color). Read more
Takes the hint and returns the highlighted version (with ANSI color). Read more
fn highlight_candidate( &self, candidate: &'c str, completion: CompletionType ) -> Cow<'c, str>
Takes the completion candidate and returns the highlighted version (with ANSI color). Read more
Tells if line needs to be highlighted when a specific char is typed or when cursor is moved under a specific char. Read more
Takes the currently edited line with the cursor position and returns the string that should be displayed or None if no hint is available for the text the user currently typed. Read more
fn validate( &self, ctx: &mut ValidationContext ) -> Result<ValidationResult, ReadlineError>
Takes the currently edited input and returns a ValidationResult indicating whether it is valid or not along with an option message to display about the result. The most common validity check to implement is probably whether the input is complete or not, for instance ensuring that all delimiters are fully balanced. Read more
Configure whether validation is performed while typing or only when user presses the Enter key. Read more
Auto Trait ImplementationsBlanket Implementationsimpl<T> Any for T where T: 'static + ?Sized, [src]
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where U: From<T>, [src]
impl<T> Same<T> for T
impl<T, U> TryFrom<U> for T where U: Into<T>, [src]
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where V: MultiLane<T>,
|