Struct StringParser

Source
pub struct StringParser(/* private fields */);

Trait Implementations§

Source§

impl Parse for StringParser

Source§

type Result = String

Source§

fn parse<'b>(&self, input: &'b str) -> ParseResult<'b, Self::Result>

Source§

fn run(&self, input: &str) -> Result<Self::Result, String>

Source§

fn and<U: Parse>(self, other: U) -> And<Self, U>

Source§

fn and_ref<'a, U: Parse>(&'a self, other: &'a U) -> AndRef<'a, Self, U>

Source§

fn or<U: Parse>(self, other: U) -> Or<Self, U>

Source§

fn or_ref<'a, U: Parse>(&'a self, other: &'a U) -> OrRef<'a, Self, U>

Source§

fn map<U, F: Fn(Self::Result) -> U>(self, f: F) -> Map<Self, F, U>

Source§

fn map_ref<'a, U, F: Fn(Self::Result) -> U>( &'a self, f: &'a F, ) -> MapRef<'a, Self, F, U>

Source§

fn zero_or_more(self) -> ZeroOrMoreOf<Self>

Source§

fn zero_or_more_ref<'a>(&'a self) -> ZeroOrMoreOfRef<'a, Self>

Source§

fn one_or_more(self) -> OneOrMoreOf<Self>

Source§

fn one_or_more_ref<'a>(&'a self) -> OneOrMoreOfRef<'a, Self>

Source§

fn drop<U: Parse>(self, other: U) -> Drop<Self, U>

Source§

fn drop_ref<'a, U: Parse>(&'a self, other: &'a U) -> DropRef<'a, Self, U>

Source§

fn keep<U: Parse>(self, other: U) -> Keep<Self, U>

Source§

fn keep_ref<'a, U: Parse>(&'a self, other: &'a U) -> KeepRef<'a, Self, U>

Source§

fn sbws(self) -> Sbws<Self>

Source§

fn sbws_ref<'a>(&'a self) -> SbwsRef<'a, Self>

Source§

fn sep_by(self, sep: char) -> SepBy<Self>

Source§

fn sep_by_ref<'a>(&'a self, sep: char) -> SepByRef<'a, Self>

Source§

fn parse_while<F: Fn(&Self::Result) -> bool>(self, f: F) -> ParseWhile<Self, F>

Source§

fn parse_while_ref<'a, F: Fn(&Self::Result) -> bool>( &'a self, f: &'a F, ) -> ParseWhileRef<'a, Self, F>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.