[−][src]Struct pear::StringFile
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) -> usize
Trait Implementations
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::Many
fn 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) -> usize
fn 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) -> bool
fn context(&mut self) -> Option<Self::Context>
[src]
fn context(&mut self) -> Option<Self::Context>
impl<'s> Debug for StringFile<'s>
[src]
impl<'s> Debug for StringFile<'s>
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>
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId