pub struct ParseContextBuilder { /* private fields */ }Implementations§
Source§impl ParseContextBuilder
impl ParseContextBuilder
pub fn empty() -> Self
pub fn empty_knowledge(self) -> Self
pub fn packages(self, packages: &[&str]) -> Self
pub fn insert_item(self, item: impl Into<ContextItem>) -> Self
pub fn remove_command(self, name: impl Into<String>) -> Self
pub fn remove_environment(self, name: impl Into<String>) -> Self
pub fn remove_delimiter_control(self, name: impl Into<String>) -> Self
pub fn build(self) -> Result<ParseContext, ParseContextBuildError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParseContextBuilder
impl RefUnwindSafe for ParseContextBuilder
impl Send for ParseContextBuilder
impl Sync for ParseContextBuilder
impl Unpin for ParseContextBuilder
impl UnsafeUnpin for ParseContextBuilder
impl UnwindSafe for ParseContextBuilder
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