[][src]Struct imxrt_iomuxc_build::PadRange

pub struct PadRange { /* fields omitted */ }

Defines a range of i.MX RT pads

let pad_range = PadRange::new("EMC", 0..42);

In the example above, we assume

  • the processor module defines a struct, EMC, available in the module's bases module. It may be referenced within the module using use crate::processor_variant::bases::EMC.
  • the processor has 42 pads with the "EMC" prefix, numbered 0 through 41

Implementations

impl PadRange[src]

pub fn new(base: &str, range: Range<usize>) -> Self[src]

Create a new pad range that defines type aliases for the pads base with base, and numbered over the provided range

pub fn skip(&self, skipped: usize) -> Self[src]

Returns a new PadRange that will skip the first skipped elements

pub fn take(&self, taken: usize) -> Self[src]

Returns a new PadRange that will only take the first taken elements

Trait Implementations

impl Clone for PadRange[src]

impl Debug for PadRange[src]

impl Eq for PadRange[src]

impl PartialEq<PadRange> for PadRange[src]

impl StructuralEq for PadRange[src]

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