Struct jedec::JEDECFile
[−]
[src]
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]
&self,
writer: W,
linebreaks: I
) -> Result<(), Error> where
W: Write,
I: Iterator<Item = usize>,
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]
&self,
writer: W,
break_inverval: usize
) -> Result<(), Error> where
W: Write,
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]
W: Write,
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]
fn clone(&self) -> JEDECFile
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for JEDECFile
[src]
fn eq(&self, __arg_0: &JEDECFile) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &JEDECFile) -> bool
[src]
This method tests for !=
.
impl Eq for JEDECFile
[src]
impl Hash for JEDECFile
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more