Trait chars_input::Input
[−]
[src]
pub trait Input { fn peek(&mut self, state: &State, offset: usize) -> Option<char>; fn read(&mut self, state: &mut State) -> Option<char> { ... } fn read_offset(&mut self, state: &mut State, offset: usize) -> usize { ... } fn peek_line(&mut self, state: &State) -> Option<String> { ... } fn read_line(&mut self, state: &mut State) -> Option<String> { ... } fn lines<'a>(&'a mut self, state: &'a mut State) -> Lines<'a, Self>
where
Self: Sized, { ... } fn is_done(&mut self, state: &State) -> bool { ... } fn can_read(&mut self, state: &State, offset: usize) -> bool { ... } }
Required Methods
Provided Methods
fn read(&mut self, state: &mut State) -> Option<char>
fn read_offset(&mut self, state: &mut State, offset: usize) -> usize
fn peek_line(&mut self, state: &State) -> Option<String>
fn read_line(&mut self, state: &mut State) -> Option<String>
fn lines<'a>(&'a mut self, state: &'a mut State) -> Lines<'a, Self> where
Self: Sized,
Self: Sized,
fn is_done(&mut self, state: &State) -> bool
fn can_read(&mut self, state: &State, offset: usize) -> bool
Implementations on Foreign Types
impl Input for [char]
[src]
fn peek(&mut self, state: &State, offset: usize) -> Option<char>
[src]
fn read(&mut self, state: &mut State) -> Option<char>
[src]
fn read_offset(&mut self, state: &mut State, offset: usize) -> usize
[src]
fn peek_line(&mut self, state: &State) -> Option<String>
[src]
fn read_line(&mut self, state: &mut State) -> Option<String>
[src]
fn lines<'a>(&'a mut self, state: &'a mut State) -> Lines<'a, Self> where
Self: Sized,
[src]
Self: Sized,
fn is_done(&mut self, state: &State) -> bool
[src]
fn can_read(&mut self, state: &State, offset: usize) -> bool
[src]
impl<'a> Input for &'a [char]
[src]
fn peek(&mut self, state: &State, offset: usize) -> Option<char>
[src]
fn read(&mut self, state: &mut State) -> Option<char>
[src]
fn read_offset(&mut self, state: &mut State, offset: usize) -> usize
[src]
fn peek_line(&mut self, state: &State) -> Option<String>
[src]
fn read_line(&mut self, state: &mut State) -> Option<String>
[src]
fn lines<'a>(&'a mut self, state: &'a mut State) -> Lines<'a, Self> where
Self: Sized,
[src]
Self: Sized,
fn is_done(&mut self, state: &State) -> bool
[src]
fn can_read(&mut self, state: &State, offset: usize) -> bool
[src]
impl<'a> Input for &'a mut [char]
[src]
fn peek(&mut self, state: &State, offset: usize) -> Option<char>
[src]
fn read(&mut self, state: &mut State) -> Option<char>
[src]
fn read_offset(&mut self, state: &mut State, offset: usize) -> usize
[src]
fn peek_line(&mut self, state: &State) -> Option<String>
[src]
fn read_line(&mut self, state: &mut State) -> Option<String>
[src]
fn lines<'a>(&'a mut self, state: &'a mut State) -> Lines<'a, Self> where
Self: Sized,
[src]
Self: Sized,
fn is_done(&mut self, state: &State) -> bool
[src]
fn can_read(&mut self, state: &State, offset: usize) -> bool
[src]
impl Input for Vec<char>
[src]
fn peek(&mut self, state: &State, offset: usize) -> Option<char>
[src]
fn read(&mut self, state: &mut State) -> Option<char>
[src]
fn read_offset(&mut self, state: &mut State, offset: usize) -> usize
[src]
fn peek_line(&mut self, state: &State) -> Option<String>
[src]
fn read_line(&mut self, state: &mut State) -> Option<String>
[src]
fn lines<'a>(&'a mut self, state: &'a mut State) -> Lines<'a, Self> where
Self: Sized,
[src]
Self: Sized,
fn is_done(&mut self, state: &State) -> bool
[src]
fn can_read(&mut self, state: &State, offset: usize) -> bool
[src]
impl<'a> Input for &'a Vec<char>
[src]
fn peek(&mut self, state: &State, offset: usize) -> Option<char>
[src]
fn read(&mut self, state: &mut State) -> Option<char>
[src]
fn read_offset(&mut self, state: &mut State, offset: usize) -> usize
[src]
fn peek_line(&mut self, state: &State) -> Option<String>
[src]
fn read_line(&mut self, state: &mut State) -> Option<String>
[src]
fn lines<'a>(&'a mut self, state: &'a mut State) -> Lines<'a, Self> where
Self: Sized,
[src]
Self: Sized,
fn is_done(&mut self, state: &State) -> bool
[src]
fn can_read(&mut self, state: &State, offset: usize) -> bool
[src]
impl<'a, T> Input for &'a mut T where
T: 'a + Input,
[src]
T: 'a + Input,
fn peek(&mut self, state: &State, offset: usize) -> Option<char>
[src]
fn read(&mut self, state: &mut State) -> Option<char>
[src]
fn read_offset(&mut self, state: &mut State, offset: usize) -> usize
[src]
fn peek_line(&mut self, state: &State) -> Option<String>
[src]
fn read_line(&mut self, state: &mut State) -> Option<String>
[src]
fn lines<'a>(&'a mut self, state: &'a mut State) -> Lines<'a, Self> where
Self: Sized,
[src]
Self: Sized,
fn is_done(&mut self, state: &State) -> bool
[src]
fn can_read(&mut self, state: &State, offset: usize) -> bool
[src]
impl<T> Input for Box<T> where
T: 'static + Input,
[src]
T: 'static + Input,
fn peek(&mut self, state: &State, offset: usize) -> Option<char>
[src]
fn read(&mut self, state: &mut State) -> Option<char>
[src]
fn read_offset(&mut self, state: &mut State, offset: usize) -> usize
[src]
fn peek_line(&mut self, state: &State) -> Option<String>
[src]
fn read_line(&mut self, state: &mut State) -> Option<String>
[src]
fn lines<'a>(&'a mut self, state: &'a mut State) -> Lines<'a, Self> where
Self: Sized,
[src]
Self: Sized,