[][src]Enum svd_expander::WriteConstraintSpec

pub enum WriteConstraintSpec {
    UseEnumeratedValues,
    Range(WriteConstraintRangeSpec),
    WriteAsRead,
    Unconstrained,
}

Defines constraints for writing values to a field.

Variants

UseEnumeratedValues

Only the values in the enumerated values list(s) of the field may be written.

Only integers within the bounds of the range (inclusive) may be written.

WriteAsRead

Only the last-read value can be written.

Unconstrained

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]

impl Debug for WriteConstraintSpec[src]

impl PartialEq<WriteConstraintSpec> for WriteConstraintSpec[src]

impl StructuralPartialEq for WriteConstraintSpec[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.