Struct Pair

struct Pair { ... }

Completion candidate pair

Fields

display: String

Text to display when listing alternatives.

replacement: String

Text to insert in line.

Implementations

impl Candidate for Pair

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

impl Clone for Pair

fn clone(self: &Self) -> Pair

impl Freeze for Pair

impl RefUnwindSafe for Pair

impl Send for Pair

impl Sync for Pair

impl Unpin for Pair

impl UnwindSafe for Pair

impl<T> Any for Pair

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Pair

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Pair

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Pair

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Pair

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Pair

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Pair

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Pair

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Pair

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>