Enum patch_svd::output::WriteConstraint [−][src]
pub enum WriteConstraint { WriteAsRead, UseEnumeratedValues, Range { minimum: SvdConstant, maximum: SvdConstant, }, }
Define constraints for writing values to a field.
You can choose between three options, which are mutualy exclusive.
Variants
Only the last read value can be written.
Only the values listed in the enumeratedValues list can be written.
Only the values within the specified range can be written
Fields of Range
minimum: SvdConstant
Specify the smallest number to be written to the field.
maximum: SvdConstant
Specify the largest number to be written to the field.
Trait Implementations
impl Clone for WriteConstraint
[src]
fn clone(&self) -> WriteConstraint
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for WriteConstraint
[src]
impl<'de> Deserialize<'de> for WriteConstraint
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for WriteConstraint
[src]
impl PartialEq<WriteConstraint> for WriteConstraint
[src]
fn eq(&self, other: &WriteConstraint) -> bool
[src]
fn ne(&self, other: &WriteConstraint) -> bool
[src]
impl StructuralEq for WriteConstraint
[src]
impl StructuralPartialEq for WriteConstraint
[src]
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
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,