[−][src]Struct jedec::JEDECFile
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]
impl Debug for JEDECFile
[src]
impl Eq for JEDECFile
[src]
impl Hash for JEDECFile
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<JEDECFile> for JEDECFile
[src]
impl StructuralEq for JEDECFile
[src]
impl StructuralPartialEq for JEDECFile
[src]
Auto Trait Implementations
impl RefUnwindSafe for JEDECFile
impl Send for JEDECFile
impl Sync for JEDECFile
impl Unpin for JEDECFile
impl UnwindSafe for JEDECFile
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,