Struct tty_interface::update::UpdateBatch [−][src]
pub struct UpdateBatch { /* fields omitted */ }
A batch of staged changes to be applied by the user.
Implementations
impl UpdateBatch
[src]
pub fn set_cursor(&mut self, new_cursor: CursorPosition)
[src]
Sets the cursor position, relative to the interface.
pub fn set_line(&mut self, line_index: usize, line: Line)
[src]
Sets or inserts a line in the interface.
pub fn delete_line(&mut self, line_index: usize)
[src]
Deletes a line from the interface.
pub fn set_segment(
&mut self,
line_index: usize,
segment_index: usize,
segment: Segment
)
[src]
&mut self,
line_index: usize,
segment_index: usize,
segment: Segment
)
Sets or inserts a segment into the interface.
pub fn delete_segment(&mut self, line_index: usize, segment_index: usize)
[src]
Deletes a segment from the specified line of the interface.
Auto Trait Implementations
impl !RefUnwindSafe for UpdateBatch
impl !Send for UpdateBatch
impl !Sync for UpdateBatch
impl Unpin for UpdateBatch
impl !UnwindSafe for UpdateBatch
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,