Struct editeur::cursor::Cursor
[−]
[src]
pub struct Cursor<T> { /* fields omitted */ }
Methods
impl<T> Cursor<T>
[src]
fn new(inner: T) -> Cursor<T>
Create a new cursor wrapping the provided underlying I/O object.
fn into_inner(self) -> T
Consume this cursor, returning the underlying value.
fn get_ref(&self) -> &T
Get a reference to the underlying value in this cursor.
fn get_mut(&mut self) -> &mut T
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.
fn position(&self) -> usize
Returns the current value of this cursor
fn set_position(&mut self, pos: usize)
Sets the value of this cursor
Trait Implementations
impl<T: Debug> Debug for Cursor<T>
[src]
impl<T: Clone> Clone for Cursor<T>
[src]
fn clone(&self) -> Cursor<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more