[][src]Enum svd_expander::AccessSpec

pub enum AccessSpec {
    ReadOnly,
    ReadWrite,
    ReadWriteOnce,
    WriteOnce,
    WriteOnly,
}

Defines access rights for fields on the device, though it may be specified at a higher level than individual fields.

Values

  • ReadOnly = Read access is permitted. Write operations have an undefined effect.
  • ReadWrite = Read and write accesses are permitted.
  • ReadWriteOnce = Read access is always permitted. Only the first write after a reset will affect the content. Following writes have an undefined effect.
  • WriteOnce = Read operations have undefined results. Only the first write after a reset will affect the content.
  • WriteOnly = Read operations have an undefined result. Write access is permitted.

Variants

ReadOnly

Read access is permitted. Write operations have an undefined effect.

ReadWrite

Read and write accesses are permitted.

ReadWriteOnce

Read access is always permitted. Only the first write after a reset will affect the content. Following writes have an undefined effect.

WriteOnce

Read operations have undefined results. Only the first write after a reset will affect the content.

WriteOnly

Read operations have an undefined result. Write access is permitted.

Implementations

impl AccessSpec[src]

pub fn can_read(&self) -> bool[src]

Whether the field is readable at least once.

pub fn can_write(&self) -> bool[src]

Whether the field is writable at least once.

Trait Implementations

impl Clone for AccessSpec[src]

impl Copy for AccessSpec[src]

impl Debug for AccessSpec[src]

impl PartialEq<AccessSpec> for AccessSpec[src]

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