[][src]Struct cntrlr_build::Board

pub struct Board {
    pub name: &'static str,
    pub mcu: &'static str,
    pub targets: Vec<&'static str>,
    pub flash: Flash,
}

Information about a target board

Fields

name: &'static str

The name of the board, as used in Cntrlr's source code.

mcu: &'static str

The name of the mcu used in the board, as used in Cntrlr's source code.

targets: Vec<&'static str>

The set of Rust targets for which this board is compatible.

flash: Flash

The preferred method for flashing an image to the board

Implementations

impl Board[src]

pub fn validate_target(&self, target: &str) -> bool[src]

Check if the specified target is valid for this board.

Trait Implementations

impl FromStr for Board[src]

type Err = ()

The associated error which can be returned from parsing.

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, 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.