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]

[src]

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

[src]

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

[src]

Returns the display string, including suffix

[src]

Returns the number of characters displayed

Trait Implementations

impl Clone for Completion
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Completion
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Completion

impl Sync for Completion