Type Alias gd32f1::R

source ·
pub type R<REG> = R<REG>;
Expand description

Register reader.

Result of the read methods of registers. Also used as a closure argument in the modify method.

Aliased Type§

struct R<REG> { /* private fields */ }

Implementations§

source§

impl<REG: RegisterSpec> R<REG>

source

pub const fn bits(&self) -> REG::Ux

Reads raw bits from register.

Trait Implementations§

source§

impl<REG: RegisterSpec, FI> PartialEq<FI> for R<REG>
where REG::Ux: PartialEq + From<FI>, FI: Copy,

source§

fn eq(&self, other: &FI) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.