Enum svd_rs::writeconstraint::WriteConstraint
source · 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.
UseEnumeratedValues(bool)
If true, only the values listed in the enumeratedValues list can be written.
Range(WriteConstraintRange)
A range of numbers that can be written.
Trait Implementations§
source§impl Clone for WriteConstraint
impl Clone for WriteConstraint
source§fn clone(&self) -> WriteConstraint
fn clone(&self) -> WriteConstraint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for WriteConstraint
impl Debug for WriteConstraint
source§impl PartialEq<WriteConstraint> for WriteConstraint
impl PartialEq<WriteConstraint> for WriteConstraint
source§fn eq(&self, other: &WriteConstraint) -> bool
fn eq(&self, other: &WriteConstraint) -> bool
This method tests for
self and other values to be equal, and is used
by ==.