Enum svd_rs::writeconstraint::WriteConstraint [−][src]
pub enum WriteConstraint {
WriteAsRead(bool),
UseEnumeratedValues(bool),
Range(WriteConstraintRange),
}
Expand description
Define constraints for writing values to a field
Variants
WriteAsRead(bool)
If true
, only the last read value can be written.
Tuple Fields of WriteAsRead
0: bool
UseEnumeratedValues(bool)
If true
, only the values listed in the enumeratedValues list can be written.
Tuple Fields of UseEnumeratedValues
0: bool
Range(WriteConstraintRange)
A range of numbers that can be written.
Tuple Fields of Range
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for WriteConstraint
impl Send for WriteConstraint
impl Sync for WriteConstraint
impl Unpin for WriteConstraint
impl UnwindSafe for WriteConstraint
Blanket Implementations
Mutably borrows from an owned value. Read more