File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ pub mod delimited;
99pub mod filter;
1010pub mod filter_map;
1111pub mod flatten;
12- mod init_context;
1312mod lazy;
1413pub mod many;
1514pub mod many_ctx;
@@ -30,7 +29,6 @@ mod token;
3029mod top_level;
3130
3231pub use ctx:: * ;
33- pub use init_context:: * ;
3432pub use lazy:: * ;
3533pub use or:: * ;
3634pub use parser:: * ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ use crate::map_err::{
1515use crate :: or_default:: OrDefaultParser ;
1616use crate :: peek:: PeekParser ;
1717use crate :: to_option:: ToOptionParser ;
18- use crate :: { InitContextParser , NoContextParser , ThenWithContextParser } ;
18+ use crate :: { NoContextParser , ThenWithContextParser } ;
1919
2020/// A parser uses the given input in order to produce a result.
2121pub trait Parser < I , C = ( ) >
@@ -213,20 +213,6 @@ where
213213 FlattenParser :: new ( self )
214214 }
215215
216- // =======================================================================
217- // InitContext
218- // =======================================================================
219-
220- /// Creates a parser that will initialize the context of the underlying parser
221- /// to the given value before parsing starts.
222- fn init_context ( self , value : C ) -> InitContextParser < Self , C >
223- where
224- Self : Sized ,
225- C : Clone ,
226- {
227- InitContextParser :: new ( self , value)
228- }
229-
230216 // =======================================================================
231217 // Many
232218 // =======================================================================
You can’t perform that action at this time.
0 commit comments