[][src]Struct svd_expander::EnumeratedValueSetSpec

pub struct EnumeratedValueSetSpec {
    pub name: Option<String>,
    pub usage: Option<EnumeratedValueUsageSpec>,
    pub values: Vec<EnumeratedValueSpec>,
    // some fields omitted
}

A set of values that can be written to and/or read from a field.

Fields

name: Option<String>

The name of the set of enumerated values.

usage: Option<EnumeratedValueUsageSpec>

Whether the values in this set can be read from the field, written to it, or both.

values: Vec<EnumeratedValueSpec>

The list of values.

Implementations

impl EnumeratedValueSetSpec[src]

pub fn derived_from_path(&self) -> Option<String>[src]

The full path to the enumerated value set that this set inherits from (if any).

pub fn path(&self) -> Option<String>[src]

The full path to this enumerated value set. Will be None if this set does not have a name (name is None).

Trait Implementations

impl Clone for EnumeratedValueSetSpec[src]

impl Debug for EnumeratedValueSetSpec[src]

impl PartialEq<EnumeratedValueSetSpec> for EnumeratedValueSetSpec[src]

impl StructuralPartialEq for EnumeratedValueSetSpec[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.