pub struct DirectiveRegistryBuilder { /* private fields */ }
Implementations§
Source§impl DirectiveRegistryBuilder
impl DirectiveRegistryBuilder
pub fn new() -> Self
pub fn register_generic(self, name: &'static str) -> Self
pub fn register_custom( self, name: &'static str, parser: for<'a> fn(Cow<'a, str>, &'a str, &ClauseRegistry) -> IResult<&'a str, Directive<'a>>, ) -> Self
pub fn with_default_rule(self, rule: DirectiveRule) -> Self
pub fn with_case_insensitive(self, enabled: bool) -> Self
pub fn build(self) -> DirectiveRegistry
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DirectiveRegistryBuilder
impl RefUnwindSafe for DirectiveRegistryBuilder
impl Send for DirectiveRegistryBuilder
impl Sync for DirectiveRegistryBuilder
impl Unpin for DirectiveRegistryBuilder
impl UnwindSafe for DirectiveRegistryBuilder
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