[−][src]Struct pear::StringFile
Methods
impl<'s> StringFile<'s>[src]
pub fn open(path: &str) -> Result<StringFile<'s>>[src]
pub fn open_with_cap(path: &str, cap: usize) -> Result<StringFile<'s>>[src]
pub fn new(file: File, cap: usize) -> StringFile<'s>[src]
pub fn available(&self) -> usize[src]
Trait Implementations
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]
Auto Trait Implementations
impl<'s> RefUnwindSafe for StringFile<'s>
impl<'s> Send for StringFile<'s>
impl<'s> Sync for StringFile<'s>
impl<'s> Unpin for StringFile<'s>
impl<'s> UnwindSafe for StringFile<'s>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,