[][src]Struct meli::terminal::text_editing::UText

pub struct UText {
    content: String,
    cursor_pos: usize,
    grapheme_cursor_pos: usize,
}

Fields

content: Stringcursor_pos: usizegrapheme_cursor_pos: usize

Implementations

impl UText[src]

pub fn new(content: String) -> Self[src]

pub fn set_cursor(&mut self, cursor_pos: usize)[src]

pub fn as_str(&self) -> &str[src]

pub fn clear(&mut self)[src]

pub fn into_string(self) -> String[src]

pub fn grapheme_len(&self) -> usize[src]

pub fn cursor_inc(&mut self)[src]

pub fn cursor_dec(&mut self)[src]

pub fn cursor_pos(&self) -> usize[src]

pub fn grapheme_pos(&self) -> usize[src]

pub fn insert_char(&mut self, k: char)[src]

pub fn backspace(&mut self)[src]

pub fn cut_left(&mut self)[src]

Trait Implementations

impl Clone for UText[src]

impl Debug for UText[src]

impl Default for UText[src]

impl PartialEq<UText> for UText[src]

impl StructuralPartialEq for UText[src]

Auto Trait Implementations

impl RefUnwindSafe for UText

impl Send for UText

impl Sync for UText

impl Unpin for UText

impl UnwindSafe for UText

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]