Skip to main content

FromPart

Trait FromPart 

Source
pub trait FromPart: Sized {
    // Required method
    fn from_part(part: Part) -> Option<Self>;
}
Expand description

A kind of simulated part, taken back out of a Part.

Required Methods§

Source

fn from_part(part: Part) -> Option<Self>

The part, when it is this kind.

§Arguments
  • part - any simulated part.
§Returns

The part as this kind, or None when it is another.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl FromPart for CommandPart

Available on crate feature alloc only.
Source§

impl FromPart for I2cPart

Available on crate feature alloc only.
Source§

impl FromPart for Part

Available on crate feature alloc only.
Source§

impl FromPart for WordPart

Available on crate feature alloc only.