[−][src]Struct rustpython::shell::rustyline_helper::ShellHelper
Fields
vm: &'vm VirtualMachine
scope: Scope
Methods
impl<'vm> ShellHelper<'vm>
[src]
pub fn new(vm: &'vm VirtualMachine, scope: Scope) -> Self
[src]
fn get_available_completions<'w>(
&self,
words: &'w [String]
) -> Option<(&'w str, Box<dyn Iterator<Item = PyResult<PyStringRef>> + 'vm>)>
[src]
&self,
words: &'w [String]
) -> Option<(&'w str, Box<dyn Iterator<Item = PyResult<PyStringRef>> + 'vm>)>
fn complete_opt(&self, line: &str) -> Option<(usize, Vec<String>)>
[src]
Trait Implementations
impl<'_> Completer for ShellHelper<'_>
[src]
type Candidate = String
fn complete(
&self,
line: &str,
pos: usize,
_ctx: &Context
) -> Result<(usize, Vec<String>)>
[src]
&self,
line: &str,
pos: usize,
_ctx: &Context
) -> Result<(usize, Vec<String>)>
fn update(&self, line: &mut LineBuffer, start: usize, elected: &str)
impl<'_> Helper for ShellHelper<'_>
[src]
impl<'_> Highlighter for ShellHelper<'_>
[src]
fn highlight(&self, line: &'l str, pos: usize) -> Cow<'l, str>
fn highlight_prompt<'b, 's, 'p>(
&'s self,
prompt: &'p str,
default: bool
) -> Cow<'b, str> where
's: 'b,
'p: 'b,
&'s self,
prompt: &'p str,
default: bool
) -> Cow<'b, str> where
's: 'b,
'p: 'b,
fn highlight_hint(&self, hint: &'h str) -> Cow<'h, str>
fn highlight_candidate(
&self,
candidate: &'c str,
completion: CompletionType
) -> Cow<'c, str>
&self,
candidate: &'c str,
completion: CompletionType
) -> Cow<'c, str>
fn highlight_char(&self, line: &str, pos: usize) -> bool
impl<'_> Hinter for ShellHelper<'_>
[src]
impl<'_> Validator for ShellHelper<'_>
[src]
fn validate(
&self,
ctx: &mut ValidationContext
) -> Result<ValidationResult, ReadlineError>
&self,
ctx: &mut ValidationContext
) -> Result<ValidationResult, ReadlineError>
fn validate_while_typing(&self) -> bool
Auto Trait Implementations
impl<'vm> !RefUnwindSafe for ShellHelper<'vm>
impl<'vm> !Send for ShellHelper<'vm>
impl<'vm> !Sync for ShellHelper<'vm>
impl<'vm> Unpin for ShellHelper<'vm>
impl<'vm> !UnwindSafe for ShellHelper<'vm>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,