Struct pear::StringFile
[−]
[src]
pub struct StringFile<'s> { /* fields omitted */ }
pub struct StringFile<'s> { /* fields omitted */ }
impl<'s> StringFile<'s>
[src]fn open(path: &str) -> Result<StringFile<'s>>
[src]fn open_with_cap(path: &str, cap: usize) -> Result<StringFile<'s>>
[src]fn new(file: File, cap: usize) -> StringFile<'s>
[src]fn available(&self) -> usize
[src]impl<'s> Debug for StringFile<'s>
[src]impl<'s> Input for StringFile<'s>
[src]type Token = char
type InSlice = &'s str
type Slice = &'s str
type Many = String
type Context = &'s str
fn peek(&mut self) -> Option<Self::Token>
[src]fn take_many<F: FnMut(Self::Token) -> bool>(&mut self, cond: F) -> Self::Many
[src]fn skip_many<F: FnMut(Self::Token) -> bool>(&mut self, cond: F) -> usize
[src]fn peek_slice(&mut self, slice: Self::InSlice) -> Option<Self::Slice>
[src]fn advance(&mut self, count: usize)
[src]fn is_empty(&mut self) -> bool
[src]fn context(&mut self) -> Option<Self::Context>
[src]