pub trait PinOps {
type Dynamic;
// Required methods
fn into_dynamic(self) -> Self::Dynamic;
unsafe fn out_set(&mut self);
unsafe fn out_clear(&mut self);
unsafe fn out_toggle(&mut self);
unsafe fn out_get(&self) -> bool;
unsafe fn in_get(&self) -> bool;
unsafe fn make_output(&mut self);
unsafe fn make_input(&mut self, pull_up: bool);
}Available on crate feature
board-selected only.Required Associated Types§
Required Methods§
fn into_dynamic(self) -> Self::Dynamic
unsafe fn out_set(&mut self)
unsafe fn out_clear(&mut self)
unsafe fn out_toggle(&mut self)
unsafe fn out_get(&self) -> bool
unsafe fn in_get(&self) -> bool
unsafe fn make_output(&mut self)
unsafe fn make_input(&mut self, pull_up: bool)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".