Struct plugx_config::parser::closure::ConfigurationParserFn
source · pub struct ConfigurationParserFn { /* private fields */ }Implementations§
source§impl ConfigurationParserFn
impl ConfigurationParserFn
pub fn new<F: AsRef<str>>(supported_format: F, parser: BoxedParserFn) -> Self
pub fn set_parser(&mut self, parser: BoxedParserFn)
pub fn with_parser(self, parser: BoxedParserFn) -> Self
pub fn set_validator(&mut self, validator: BoxedValidatorFn)
pub fn with_validator(self, validator: BoxedValidatorFn) -> Self
pub fn set_format_list<N: AsRef<str>>(&mut self, format_list: &[N])
pub fn with_format_list<N: AsRef<str>>(self, format_list: &[N]) -> Self
pub fn set_modifier(&mut self, modifier: BoxedModifierFn)
pub fn with_modifier(self, modifier: BoxedModifierFn) -> Self
Trait Implementations§
source§impl ConfigurationParser for ConfigurationParserFn
impl ConfigurationParser for ConfigurationParserFn
fn maybe_get_modifier(&self) -> Option<&BoxedModifierFn>
fn supported_format_list(&self) -> Vec<String>
fn parse(&self, bytes: &[u8]) -> Result<Input>
fn is_format_supported(&self, bytes: &[u8]) -> Option<bool>
fn parse_and_modify_with_logging( &self, bytes: &[u8] ) -> Result<Input, ConfigurationParserError>
fn parse_with_logging( &self, bytes: &[u8] ) -> Result<Input, ConfigurationParserError>
fn parse_and_modify(&self, bytes: &[u8]) -> Result<Input>
source§impl Debug for ConfigurationParserFn
impl Debug for ConfigurationParserFn
Auto Trait Implementations§
impl !RefUnwindSafe for ConfigurationParserFn
impl Send for ConfigurationParserFn
impl Sync for ConfigurationParserFn
impl Unpin for ConfigurationParserFn
impl !UnwindSafe for ConfigurationParserFn
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