Struct xc2bit::FuseArray [] [src]

pub struct FuseArray {
    pub dev_name_str: Option<String>,
    // some fields omitted
}

Struct representing a 2-dimensional fuse array and handles converting xy-coordinates into a single linear index. The x-axis is horizontal and the y-axis is vertical. The origin is at the top-left corner. (This is the standard "computer graphics" coordinate scheme.)

Fields

Possibly contains a device name

Methods

impl FuseArray
[src]

[src]

Get a fuse value at the particular xy coordinate

[src]

Set the fuse value at the particular xy coordinate

[src]

Returns the dimensions of this array as (width, height)

[src]

Processes the given data and converts it into a FuseArray struct.

[src]

Constructs a new FuseArray object with the given dimensions and filled with 0s

[src]

Writes the fuse array to the internal "crbit" file format, which is an ASCII file containing '1' and '0'. (This format is intended to be compatible with $readmemb.)

Trait Implementations

impl Index<(usize, usize)> for FuseArray
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl IndexMut<(usize, usize)> for FuseArray
[src]

[src]

Performs the mutable indexing (container[index]) operation.

Auto Trait Implementations

impl Send for FuseArray

impl Sync for FuseArray