pub struct StringParser(/* private fields */);Trait Implementations§
Source§impl Parse for StringParser
impl Parse for StringParser
type Result = String
fn parse<'b>(&self, input: &'b str) -> ParseResult<'b, Self::Result>
fn run(&self, input: &str) -> Result<Self::Result, String>
fn and<U: Parse>(self, other: U) -> And<Self, U>
fn and_ref<'a, U: Parse>(&'a self, other: &'a U) -> AndRef<'a, Self, U>
fn or<U: Parse>(self, other: U) -> Or<Self, U>
fn or_ref<'a, U: Parse>(&'a self, other: &'a U) -> OrRef<'a, Self, U>
fn map<U, F: Fn(Self::Result) -> U>(self, f: F) -> Map<Self, F, U>
fn map_ref<'a, U, F: Fn(Self::Result) -> U>( &'a self, f: &'a F, ) -> MapRef<'a, Self, F, U>
fn zero_or_more(self) -> ZeroOrMoreOf<Self>
fn zero_or_more_ref<'a>(&'a self) -> ZeroOrMoreOfRef<'a, Self>
fn one_or_more(self) -> OneOrMoreOf<Self>
fn one_or_more_ref<'a>(&'a self) -> OneOrMoreOfRef<'a, Self>
fn drop<U: Parse>(self, other: U) -> Drop<Self, U>
fn drop_ref<'a, U: Parse>(&'a self, other: &'a U) -> DropRef<'a, Self, U>
fn keep<U: Parse>(self, other: U) -> Keep<Self, U>
fn keep_ref<'a, U: Parse>(&'a self, other: &'a U) -> KeepRef<'a, Self, U>
fn sbws(self) -> Sbws<Self>
fn sbws_ref<'a>(&'a self) -> SbwsRef<'a, Self>
fn sep_by(self, sep: char) -> SepBy<Self>
fn sep_by_ref<'a>(&'a self, sep: char) -> SepByRef<'a, Self>
fn parse_while<F: Fn(&Self::Result) -> bool>(self, f: F) -> ParseWhile<Self, F>
fn parse_while_ref<'a, F: Fn(&Self::Result) -> bool>( &'a self, f: &'a F, ) -> ParseWhileRef<'a, Self, F>
Auto Trait Implementations§
impl Freeze for StringParser
impl RefUnwindSafe for StringParser
impl Send for StringParser
impl Sync for StringParser
impl Unpin for StringParser
impl UnsafeUnpin for StringParser
impl UnwindSafe for StringParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more