Struct svd_parser::Config
source · #[non_exhaustive]pub struct Config {
pub validate_level: ValidateLevel,
pub ignore_enums: bool,
}
Expand description
Advanced parser options
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.validate_level: ValidateLevel
SVD error check level
ignore_enums: bool
Skip parsing and emitting enumeratedValues
and writeConstraint
in Field
Implementations§
source§impl Config
impl Config
sourcepub fn validate_level(self, lvl: ValidateLevel) -> Self
pub fn validate_level(self, lvl: ValidateLevel) -> Self
SVD error check level
sourcepub fn ignore_enums(self, val: bool) -> Self
pub fn ignore_enums(self, val: bool) -> Self
Skip parsing enumeratedValues
and writeConstraint
in Field
Trait Implementations§
impl Copy for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)