Struct pty_proc::shell::display::cursor::Cursor
[−]
[src]
pub struct Cursor<T> { /* fields omitted */ }
Methods
impl<T> Cursor<T>
[src]
pub fn new(inner: T) -> Cursor<T>
[src]
Create a new cursor wrapping the provided underlying I/O object.
pub fn into_inner(self) -> T
[src]
Consume this cursor, returning the underlying value.
ⓘImportant traits for &'a mut Rpub fn get_ref(&self) -> &T
[src]
ⓘImportant traits for &'a mut R
Get a reference to the underlying value in this cursor.
ⓘImportant traits for &'a mut Rpub fn get_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'a mut R
Get a mutable reference to the underlying value in this cursor.
Care should be taken to avoid modifying the internal I/O state of the underlying value as it may corrupt this cursor's position.
pub fn position(&self) -> usize
[src]
Returns the current value of this cursor
pub fn set_position(&mut self, pos: usize)
[src]
Sets the value of this cursor
impl Cursor<Vec<Character>>
[src]
Trait Implementations
impl<T: Debug> Debug for Cursor<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more