pub struct ScriptParser<'a, F: Fn(&str, Vec<Arg>) -> ParseResult<StepKind>> { /* private fields */ }Implementations§
Source§impl<'a, F: Fn(&str, Vec<Arg>) -> ParseResult<StepKind>> ScriptParser<'a, F>
impl<'a, F: Fn(&str, Vec<Arg>) -> ParseResult<StepKind>> ScriptParser<'a, F>
pub fn new(input: &'a str, lower: F) -> ParseResult<Self>
pub fn new_with_hosts( input: &'a str, lower: F, reserved_names: HashSet<String>, ) -> ParseResult<Self>
pub fn new_with_modules( input: &'a str, lower: F, reserved_names: HashSet<String>, modules: ModuleTable, ) -> ParseResult<Self>
pub fn new_with_preseed( input: &'a str, lower: F, reserved_names: HashSet<String>, modules: ModuleTable, preseed_funcs: HashSet<String>, preseed_imports: Vec<String>, ) -> ParseResult<Self>
pub fn parse(self) -> ParseResult<Vec<Step>>
Auto Trait Implementations§
impl<'a, F> !Send for ScriptParser<'a, F>
impl<'a, F> !Sync for ScriptParser<'a, F>
impl<'a, F> Freeze for ScriptParser<'a, F>where
F: Freeze,
impl<'a, F> RefUnwindSafe for ScriptParser<'a, F>where
F: RefUnwindSafe,
impl<'a, F> Unpin for ScriptParser<'a, F>where
F: Unpin,
impl<'a, F> UnsafeUnpin for ScriptParser<'a, F>where
F: UnsafeUnpin,
impl<'a, F> UnwindSafe for ScriptParser<'a, F>where
F: UnwindSafe,
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