Struct svd_parser::Config
source · [−]#[non_exhaustive]pub struct Config {
pub validate_level: ValidateLevel,
pub expand_properties: bool,
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
expand_properties: bool
Derive register properties from parents
ignore_enums: bool
Skip parsing and emitting enumeratedValues
and writeConstraint
in Field
Implementations
sourceimpl 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 RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more