pub struct QuotedString;Expand description
エスケープなし文字列はゼロコピー (&'a str) で返し、
エスケープありの場合のみ String にフォールバックする quoted string パーサー。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QuotedString
impl RefUnwindSafe for QuotedString
impl Send for QuotedString
impl Sync for QuotedString
impl Unpin for QuotedString
impl UnsafeUnpin for QuotedString
impl UnwindSafe for QuotedString
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
Source§impl<I, P> ParserExt<I> for P
impl<I, P> ParserExt<I> for P
fn map<F, O2>(self, f: F) -> Map<Self, F>
fn zip<P2>(self, rhs: P2) -> Zip<Self, P2>
fn or<P2>(self, rhs: P2) -> Or<Self, P2>
fn attempt(self) -> Attempt<Self>
fn cut(self) -> Cut<Self>
fn optional(self) -> Optional<Self>
fn many0(self) -> Many<Self>
fn many1(self) -> Many1<Self>
Source§fn many0_fold<B, F, Acc>(self, init: B, f: F) -> ManyFold<Self, B, F>
fn many0_fold<B, F, Acc>(self, init: B, f: F) -> ManyFold<Self, B, F>
ゼロ個以上の要素を畳み込む(ゼロアロケーション)。
Source§fn many1_fold<B, F, Acc>(self, init: B, f: F) -> Many1Fold<Self, B, F>
fn many1_fold<B, F, Acc>(self, init: B, f: F) -> Many1Fold<Self, B, F>
1個以上の要素を畳み込む(ゼロアロケーション)。
Source§fn many0_into<C>(
self,
container: C,
) -> ManyFold<Self, impl FnMut() -> C, impl FnMut(C, Self::Output) -> C>
fn many0_into<C>( self, container: C, ) -> ManyFold<Self, impl FnMut() -> C, impl FnMut(C, Self::Output) -> C>
ゼロ個以上の要素をユーザー指定のコンテナに収集する。
Source§fn many1_into<C>(
self,
container: C,
) -> Many1Fold<Self, impl FnMut() -> C, impl FnMut(C, Self::Output) -> C>
fn many1_into<C>( self, container: C, ) -> Many1Fold<Self, impl FnMut() -> C, impl FnMut(C, Self::Output) -> C>
1個以上の要素をユーザー指定のコンテナに収集する。
Source§fn context(self, label: &'static str) -> Context<Self>where
Self::Error: ContextError,
fn context(self, label: &'static str) -> Context<Self>where
Self::Error: ContextError,
エラーにコンテキストラベルを付与する。
Source§fn sep_by0_fold<S, B, F, Acc>(
self,
sep: S,
init: B,
f: F,
) -> SepByFold0<Self, S, B, F>
fn sep_by0_fold<S, B, F, Acc>( self, sep: S, init: B, f: F, ) -> SepByFold0<Self, S, B, F>
区切り付き 0 個以上の要素を畳み込む(ゼロアロケーション)。
Source§fn sep_by1_fold<S, B, F, Acc>(
self,
sep: S,
init: B,
f: F,
) -> SepByFold1<Self, S, B, F>
fn sep_by1_fold<S, B, F, Acc>( self, sep: S, init: B, f: F, ) -> SepByFold1<Self, S, B, F>
区切り付き 1 個以上の要素を畳み込む(ゼロアロケーション)。
Source§fn sep_by0_into<S, C>(
self,
sep: S,
container: C,
) -> SepByFold0<Self, S, impl FnMut() -> C, impl FnMut(C, Self::Output) -> C>
fn sep_by0_into<S, C>( self, sep: S, container: C, ) -> SepByFold0<Self, S, impl FnMut() -> C, impl FnMut(C, Self::Output) -> C>
区切り付き 0 個以上の要素をユーザー指定のコンテナに収集する。
Source§fn sep_by1_into<S, C>(
self,
sep: S,
container: C,
) -> SepByFold1<Self, S, impl FnMut() -> C, impl FnMut(C, Self::Output) -> C>
fn sep_by1_into<S, C>( self, sep: S, container: C, ) -> SepByFold1<Self, S, impl FnMut() -> C, impl FnMut(C, Self::Output) -> C>
区切り付き 1 個以上の要素をユーザー指定のコンテナに収集する。
Source§fn chainl1<Op, F>(self, op: Op) -> ChainL1<Self, Op>
fn chainl1<Op, F>(self, op: Op) -> ChainL1<Self, Op>
左結合の二項演算子チェーン。operand (op operand)* を左から畳む。
Source§fn chainr1<Op, F>(self, op: Op) -> ChainR1<Self, Op>
fn chainr1<Op, F>(self, op: Op) -> ChainR1<Self, Op>
右結合の二項演算子チェーン。operand (op operand)* を右から畳む。
Source§fn map_res<F, O2, E2>(self, f: F, label: &'static str) -> MapRes<Self, F>
fn map_res<F, O2, E2>(self, f: F, label: &'static str) -> MapRes<Self, F>
パーサーの結果を失敗しうる関数で変換する。
関数が
Err を返した場合、Backtrack エラーになる。
入力は巻き戻さない(巻き戻したい場合は .attempt() と組み合わせる)。