[−][src]Enum svd_expander::WriteConstraintSpec
Defines constraints for writing values to a field.
Variants
Only the values in the enumerated values list(s) of the field may be written.
Range(WriteConstraintRangeSpec)
Only integers within the bounds of the range (inclusive) may be written.
Only the last-read value can be written.
There are no constraints on writing to the field. This variant is only constructed in cases where the SVD XML is illogical, for example like this:
<writeConstraint>
<useEnumeratedValues>false</useEnumeratedValues>
</writeConstraint>
The XML is supposed to contain one of three mutually exclusive options, so it doesn't make
sense if the option that it contains is set to false
.
Trait Implementations
impl Clone for WriteConstraintSpec
[src]
fn clone(&self) -> WriteConstraintSpec
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for WriteConstraintSpec
[src]
impl PartialEq<WriteConstraintSpec> for WriteConstraintSpec
[src]
fn eq(&self, other: &WriteConstraintSpec) -> bool
[src]
fn ne(&self, other: &WriteConstraintSpec) -> bool
[src]
impl StructuralPartialEq for WriteConstraintSpec
[src]
Auto Trait Implementations
impl RefUnwindSafe for WriteConstraintSpec
impl Send for WriteConstraintSpec
impl Sync for WriteConstraintSpec
impl Unpin for WriteConstraintSpec
impl UnwindSafe for WriteConstraintSpec
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,