Enum DataType

Source
#[repr(u16)]
pub enum DataType { Raw = 1, SizedData = 2, BinaryInfoListZeroTerminated = 3, Bson = 4, IdAndInt = 5, IdAndString = 6, BlockDevice = 7, PinsWithFunction = 8, PinsWithName = 9, PinsWithNames = 10, }
Expand description

This is the set of data types that picotool supports.

Variants§

§

Raw = 1

Raw data

§

SizedData = 2

Data with a size

§

BinaryInfoListZeroTerminated = 3

A list of binary data

§

Bson = 4

A BSON encoded blob

§

IdAndInt = 5

An Integer with an ID

§

IdAndString = 6

A string with an Id

§

BlockDevice = 7

A block device

§

PinsWithFunction = 8

GPIO pins, with their function

§

PinsWithName = 9

GPIO pins, with their name

§

PinsWithNames = 10

GPIO pins, with multiple names?

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.