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 for WriteConstraint
impl PartialEq 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 ==
.impl Copy for WriteConstraint
impl Eq for WriteConstraint
impl StructuralEq for WriteConstraint
impl StructuralPartialEq for WriteConstraint
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§
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