pub trait PinPull: Sized {
// Required method
fn set_internal_resistor(&mut self, resistor: Pull);
// Provided method
fn internal_resistor(self, resistor: Pull) -> Self { ... }
}
Required Methods§
Sourcefn set_internal_resistor(&mut self, resistor: Pull)
fn set_internal_resistor(&mut self, resistor: Pull)
Set the internal pull-up and pull-down resistor
Provided Methods§
fn internal_resistor(self, resistor: Pull) -> 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.