Struct linefeed::complete::Completion
[−]
[src]
pub struct Completion { pub completion: String, pub display: Option<String>, pub suffix: Option<char>, }
Represents a single possible completion
Fields
completion: String
Whole completion text
display: Option<String>
Listing display string; None
if matches completion
suffix: Option<char>
Completion suffix; replaces append character
Methods
impl Completion
[src]
fn simple(s: String) -> Completion
Returns a simple Completion
value, with display string matching
completion and using the default completion suffix.
fn completion(&self, def_suffix: Option<char>) -> Cow<str>
Returns the full completion string, including suffix, using the given default suffix if one is not assigned to this completion.
fn display(&self) -> Cow<str>
Returns the display string, including suffix
fn display_chars(&self) -> usize
Returns the number of characters displayed
Trait Implementations
impl Debug for Completion
[src]
impl Clone for Completion
[src]
fn clone(&self) -> Completion
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more