Struct Pair

pub struct Pair { pub display: String, pub replacement: String }

Completion candidate pair

Fields

display: String

Text to display when listing alternatives.

replacement: String

Text to insert in line.

Trait Implementations

impl Candidate for Pair

fn display(&self) -> &str
fn replacement(&self) -> &str

impl Clone for Pair

fn clone(&self) -> Self

Auto Trait Implementations

impl Freeze for Pair

impl RefUnwindSafe for Pair

impl Send for Pair

impl Sync for Pair

impl Unpin for Pair

impl UnsafeUnpin for Pair

impl UnwindSafe for Pair

Blanket Implementations

impl<T> Any for Pair where T: 'static + ?Sized,

impl<T> Borrow<T> for Pair where T: ?Sized,

impl<T> BorrowMut<T> for Pair where T: ?Sized,

impl<T> CloneToUninit for Pair where T: Clone,

impl<T> From<T> for Pair

impl<T> ToOwned for Pair where T: Clone,

impl<T, U> Into<U> for Pair where U: From<T>,

impl<T, U> TryFrom<U> for Pair where U: Into<T>,

impl<T, U> TryInto<U> for Pair where U: TryFrom<T>,