Skip to main content

Array

Trait Array 

Source
pub trait Array {
    // Provided methods
    fn at(idx: usize) -> RegisterArrayLoc<Self>
       where Self: RegisterArray { ... }
    fn try_at(idx: usize) -> Option<RegisterArrayLoc<Self>>
       where Self: RegisterArray { ... }
}
Expand description

Trait providing location builders for RegisterArrays.

Provided Methods§

Source

fn at(idx: usize) -> RegisterArrayLoc<Self>
where Self: RegisterArray,

Returns the location of the register at position idx, with build-time validation.

Source

fn try_at(idx: usize) -> Option<RegisterArrayLoc<Self>>
where Self: RegisterArray,

Returns the location of the register at position idx, with runtime validation.

Implementors§