[−][src]Struct imxrt_iomuxc_build::PadRange
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'sbases
module. It may be referenced within the module usinguse 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
impl RefUnwindSafe for PadRange
impl Send for PadRange
impl Sync for PadRange
impl Unpin for PadRange
impl UnwindSafe for PadRange
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,
fn borrow_mut(&mut self) -> &mut T
[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.
fn to_owned(&self) -> T
[src]
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.
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>,