Struct pear::StringFile [−][src]
pub struct StringFile<'s> { /* fields omitted */ }Methods
impl<'s> StringFile<'s>[src]
impl<'s> StringFile<'s>pub fn open(path: &str) -> Result<StringFile<'s>>[src]
pub fn open(path: &str) -> Result<StringFile<'s>>pub fn open_with_cap(path: &str, cap: usize) -> Result<StringFile<'s>>[src]
pub fn open_with_cap(path: &str, cap: usize) -> Result<StringFile<'s>>pub fn new(file: File, cap: usize) -> StringFile<'s>[src]
pub fn new(file: File, cap: usize) -> StringFile<'s>pub fn available(&self) -> usize[src]
pub fn available(&self) -> usizeTrait Implementations
impl<'s> Debug for StringFile<'s>[src]
impl<'s> Debug for StringFile<'s>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'s> Input for StringFile<'s>[src]
impl<'s> Input for StringFile<'s>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 peek(&mut self) -> Option<Self::Token>fn take_many<F: FnMut(Self::Token) -> bool>(&mut self, cond: F) -> Self::Many[src]
fn take_many<F: FnMut(Self::Token) -> bool>(&mut self, cond: F) -> Self::Manyfn skip_many<F: FnMut(Self::Token) -> bool>(&mut self, cond: F) -> usize[src]
fn skip_many<F: FnMut(Self::Token) -> bool>(&mut self, cond: F) -> usizefn peek_slice(&mut self, slice: Self::InSlice) -> Option<Self::Slice>[src]
fn peek_slice(&mut self, slice: Self::InSlice) -> Option<Self::Slice>fn advance(&mut self, count: usize)[src]
fn advance(&mut self, count: usize)fn is_empty(&mut self) -> bool[src]
fn is_empty(&mut self) -> boolfn context(&mut self) -> Option<Self::Context>[src]
fn context(&mut self) -> Option<Self::Context>Auto Trait Implementations
impl<'s> Send for StringFile<'s>
impl<'s> Send for StringFile<'s>impl<'s> Sync for StringFile<'s>
impl<'s> Sync for StringFile<'s>