[][src]Struct jedec::JEDECFile

pub struct JEDECFile {
    pub f: Vec<bool>,
    pub dev_name_str: Option<String>,
}

Struct representing a JEDEC programming file. Primarily consists of a fuse array, and also contains some other miscellaneous fields.

Fields

f: Vec<bool>

Fuse array

dev_name_str: Option<String>

Possibly contains a device name

Methods

impl JEDECFile[src]

pub fn from_bytes(in_bytes: &[u8]) -> Result<Self, JedParserError>[src]

Reads .jed file and outputs the fuses as an array of booleans and optional device name

pub fn write_custom_linebreaks<W, I>(
    &self,
    writer: W,
    linebreaks: I
) -> Result<(), Error> where
    W: Write,
    I: Iterator<Item = usize>, 
[src]

Writes the contents to a JEDEC file. Note that a &mut Write can also be passed as a writer. Line breaks are inserted before the given fuse numbers in the iterator.

pub fn write_with_linebreaks<W>(
    &self,
    writer: W,
    break_inverval: usize
) -> Result<(), Error> where
    W: Write
[src]

Writes the contents to a JEDEC file. Note that a &mut Write can also be passed as a writer. Line breaks happen every break_inverval fuses.

pub fn write<W>(&self, writer: W) -> Result<(), Error> where
    W: Write
[src]

Writes the contents to a JEDEC file. Note that a &mut Write can also be passed as a writer. Line breaks default to once every 16 fuses.

pub fn new(size: usize) -> Self[src]

Constructs a fuse array with the given number of fuses

Trait Implementations

impl Clone for JEDECFile[src]

impl Debug for JEDECFile[src]

impl Eq for JEDECFile[src]

impl Hash for JEDECFile[src]

impl PartialEq<JEDECFile> for JEDECFile[src]

impl StructuralEq for JEDECFile[src]

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