[][src]Struct gbl::ProgramData

pub struct ProgramData<'a> { /* fields omitted */ }

A chunk of program data to be programmed to a specified flash address.

Methods

impl<'a> ProgramData<'a>[src]

pub fn new<D>(addr: u32, data: D) -> Self where
    D: Into<Cow<'a, [u8]>>, 
[src]

Creates a new ProgramData section for flashing data at addr.

It is the users responsibility to ensure that no ProgramData section writes out of bounds of flash memory.

pub fn start_addr(&self) -> u32[src]

Returns the target address in the device flash.

pub fn bytes(&self) -> &[u8][src]

Returns the bytes to be written.

Trait Implementations

impl<'a> From<AppImage<'a>> for ProgramData<'a>[src]

impl<'a> Debug for ProgramData<'a>[src]

Auto Trait Implementations

impl<'a> Sync for ProgramData<'a>

impl<'a> Send for ProgramData<'a>

impl<'a> Unpin for ProgramData<'a>

impl<'a> RefUnwindSafe for ProgramData<'a>

impl<'a> UnwindSafe for ProgramData<'a>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]