Struct linefeed::complete::Completion [] [src]

pub struct Completion {
    pub completion: String,
    pub display: Option<String>,
    pub suffix: Suffix,
}

Represents a single possible completion

Fields

Whole completion text

Listing display string; None if matches completion

Completion suffix; replaces append character

Methods

impl Completion
[src]

Returns a simple Completion value, with display string matching completion and using the default completion suffix.

Returns the full completion string, including suffix, using the given default suffix if one is not assigned to this completion.

Returns the display string, including suffix

Returns the number of characters displayed

Trait Implementations

impl Clone for Completion
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Completion
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Completion

impl Sync for Completion