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