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
sourceimpl Clone for WriteConstraint
 
impl Clone for WriteConstraint
sourcefn clone(&self) -> WriteConstraint
 
fn clone(&self) -> WriteConstraint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for WriteConstraint
 
impl Debug for WriteConstraint
sourceimpl PartialEq<WriteConstraint> for WriteConstraint
 
impl PartialEq<WriteConstraint> for WriteConstraint
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &WriteConstraint) -> bool
 
fn ne(&self, other: &WriteConstraint) -> bool
This method tests for !=.
impl Copy 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
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