k210_soc::spi

Trait TruncU32

Source
pub trait TruncU32 {
    // Required method
    fn trunc(val: u32) -> Self;
}
Expand description

Trait for trunction of a SPI frame from u32 register to other unsigned integer types.

Required Methods§

Source

fn trunc(val: u32) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl TruncU32 for u8

Source§

fn trunc(val: u32) -> u8

Source§

impl TruncU32 for u16

Source§

fn trunc(val: u32) -> u16

Source§

impl TruncU32 for u32

Source§

fn trunc(val: u32) -> u32

Implementors§