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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§