Struct ad_editor::exec::CachedStdin
source · pub struct CachedStdin { /* private fields */ }Expand description
A wrapper around stdin that buffers and caches input so that it can be manipulated like a Buffer
Implementations§
source§impl CachedStdin
impl CachedStdin
Trait Implementations§
source§impl Address for CachedStdin
impl Address for CachedStdin
source§fn current_dot(&self) -> Dot
fn current_dot(&self) -> Dot
This only really makes sense for use with a buffer but is supported
so that don’t need to special case running programs against an in-editor
buffer vs stdin or a file read from disk.
fn len_chars(&self) -> usize
fn max_iter(&self) -> usize
fn line_to_char(&self, line_idx: usize) -> Option<usize>
fn char_to_line(&self, char_idx: usize) -> Option<usize>
fn char_to_line_end(&self, char_idx: usize) -> Option<usize>
fn char_to_line_start(&self, char_idx: usize) -> Option<usize>
fn map_addr(&self, a: &mut Addr) -> Dot
fn full_line(&self, line_idx: usize) -> Option<Dot>
fn map_simple_addr(&self, addr: &mut SimpleAddr, cur_dot: Dot) -> Option<Dot>
fn map_compound_addr( &self, from: &mut SimpleAddr, to: &mut SimpleAddr, ) -> Option<Dot>
source§impl Default for CachedStdin
impl Default for CachedStdin
source§impl Edit for CachedStdin
impl Edit for CachedStdin
source§impl IterBoundedChars for CachedStdin
impl IterBoundedChars for CachedStdin
Auto Trait Implementations§
impl !Freeze for CachedStdin
impl !RefUnwindSafe for CachedStdin
impl Send for CachedStdin
impl !Sync for CachedStdin
impl Unpin for CachedStdin
impl UnwindSafe for CachedStdin
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more