Struct Pin

Source
pub struct Pin<Gpio, Index, Mode> { /* private fields */ }
Expand description

Generic pin

Implementations§

Source§

impl<Gpio, Mode, const X: u8> Pin<Gpio, U<X>, Mode>

Source

pub fn downgrade(self) -> Pin<Gpio, Ux, Mode>

Erases the pin number from the type

This is useful when you want to collect the pins into an array where you need all the elements to have the same type

Source§

impl<Gpio, Mode> Pin<Gpio, Ux, Mode>
where Gpio: GpioStatic, Gpio::Reg: 'static + Sized,

Source

pub fn downgrade(self) -> PXx<Mode>

Erases the port letter from the type

This is useful when you want to collect the pins into an array where you need all the elements to have the same type

Source§

impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
where Gpio: GpioStatic, Index: Index,

Source

pub fn into_input(self, moder: &mut Gpio::MODER) -> Pin<Gpio, Index, Input>

Configures the pin to operate as an input pin

Source

pub fn into_floating_input( self, moder: &mut Gpio::MODER, pupdr: &mut Gpio::PUPDR, ) -> Pin<Gpio, Index, Input>

Convenience method to configure the pin to operate as an input pin and set the internal resistor floating

Source

pub fn into_pull_up_input( self, moder: &mut Gpio::MODER, pupdr: &mut Gpio::PUPDR, ) -> Pin<Gpio, Index, Input>

Convenience method to configure the pin to operate as an input pin and set the internal resistor pull-up

Source

pub fn into_pull_down_input( self, moder: &mut Gpio::MODER, pupdr: &mut Gpio::PUPDR, ) -> Pin<Gpio, Index, Input>

Convenience method to configure the pin to operate as an input pin and set the internal resistor pull-down

Source

pub fn into_push_pull_output( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, ) -> Pin<Gpio, Index, Output<PushPull>>

Configures the pin to operate as a push-pull output pin

Source

pub fn into_open_drain_output( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, ) -> Pin<Gpio, Index, Output<OpenDrain>>

Configures the pin to operate as an open-drain output pin

Source

pub fn into_analog( self, moder: &mut Gpio::MODER, pupdr: &mut Gpio::PUPDR, ) -> Pin<Gpio, Index, Analog>

Configures the pin to operate as an analog pin, with disabled schmitt trigger.

Source§

impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
where Gpio: GpioStatic, Index: Index, Mode: OutputSpeed,

Source

pub fn set_speed(&mut self, ospeedr: &mut Gpio::OSPEEDR, speed: Speed)

Set pin output slew rate

Source§

impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
where Gpio: GpioStatic, Index: Index, Mode: Active,

Source

pub fn set_internal_resistor( &mut self, pupdr: &mut Gpio::PUPDR, resistor: Resistor, )

Set the internal pull-up and pull-down resistor

Source

pub fn internal_pull_up(&mut self, pupdr: &mut Gpio::PUPDR, on: bool)

Enables / disables the internal pull up (Provided for compatibility with other stm32 HALs)

Source§

impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
where Gpio: Gpio, Index: Index, Mode: Active,

Source

pub fn interrupt(&self) -> Interrupt

NVIC interrupt number of interrupt from this pin

Used to unmask / enable the interrupt with cortex_m::peripheral::NVIC::unmask(). This is also useful for all other cortex_m::peripheral::NVIC functions.

Source

pub fn trigger_on_edge(&mut self, exti: &mut EXTI, edge: Edge)

Generate interrupt on rising edge, falling edge, or both

Source

pub fn configure_interrupt( &mut self, exti: &mut EXTI, enable: impl Into<Switch>, )

Configure external interrupts from this pin

§Note

Remeber to also configure the interrupt pin on the SysCfg site, with crate::syscfg::SysCfg::select_exti_interrupt_source()

Source

pub fn enable_interrupt(&mut self, exti: &mut EXTI)

Enable external interrupts from this pin

§Note

Remeber to also configure the interrupt pin on the SysCfg site, with crate::syscfg::SysCfg::select_exti_interrupt_source()

Source

pub fn disable_interrupt(&mut self, exti: &mut EXTI)

Disable external interrupts from this pin

Source

pub fn clear_interrupt(&mut self)

Clear the interrupt pending bit for this pin

Source

pub fn is_interrupt_pending(&self) -> bool

Reads the interrupt pending bit for this pin

Source§

impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
where Gpio: GpioStatic, Index: Index,

Source

pub fn into_af_push_pull<const A: u8>( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<A>>::AFR, ) -> Pin<Gpio, Index, Alternate<PushPull, A>>
where Self: IntoAf<A>,

Configures the pin to operate as an alternate function push-pull output pin

Source

pub fn into_af_open_drain<const A: u8>( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<A>>::AFR, ) -> Pin<Gpio, Index, Alternate<OpenDrain, A>>
where Self: IntoAf<A>,

Configures the pin to operate as an alternate function open-drain output pin

Source§

impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
where Self: IntoAf<0>, Gpio: GpioStatic, Index: Index,

Source

pub fn into_af0_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<0>>::AFR, ) -> Pin<Gpio, Index, AF0<PushPull>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull() instead

Configures the pin to operate as an alternate function push-pull output pin

Source

pub fn into_af0_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<0>>::AFR, ) -> Pin<Gpio, Index, AF0<OpenDrain>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain() instead

Configures the pin to operate as an alternate function open-drain output pin

Source§

impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
where Self: IntoAf<1>, Gpio: GpioStatic, Index: Index,

Source

pub fn into_af1_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<1>>::AFR, ) -> Pin<Gpio, Index, AF1<PushPull>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull() instead

Configures the pin to operate as an alternate function push-pull output pin

Source

pub fn into_af1_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<1>>::AFR, ) -> Pin<Gpio, Index, AF1<OpenDrain>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain() instead

Configures the pin to operate as an alternate function open-drain output pin

Source§

impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
where Self: IntoAf<2>, Gpio: GpioStatic, Index: Index,

Source

pub fn into_af2_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<2>>::AFR, ) -> Pin<Gpio, Index, AF2<PushPull>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull() instead

Configures the pin to operate as an alternate function push-pull output pin

Source

pub fn into_af2_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<2>>::AFR, ) -> Pin<Gpio, Index, AF2<OpenDrain>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain() instead

Configures the pin to operate as an alternate function open-drain output pin

Source§

impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
where Self: IntoAf<3>, Gpio: GpioStatic, Index: Index,

Source

pub fn into_af3_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<3>>::AFR, ) -> Pin<Gpio, Index, AF3<PushPull>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull() instead

Configures the pin to operate as an alternate function push-pull output pin

Source

pub fn into_af3_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<3>>::AFR, ) -> Pin<Gpio, Index, AF3<OpenDrain>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain() instead

Configures the pin to operate as an alternate function open-drain output pin

Source§

impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
where Self: IntoAf<4>, Gpio: GpioStatic, Index: Index,

Source

pub fn into_af4_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<4>>::AFR, ) -> Pin<Gpio, Index, AF4<PushPull>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull() instead

Configures the pin to operate as an alternate function push-pull output pin

Source

pub fn into_af4_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<4>>::AFR, ) -> Pin<Gpio, Index, AF4<OpenDrain>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain() instead

Configures the pin to operate as an alternate function open-drain output pin

Source§

impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
where Self: IntoAf<5>, Gpio: GpioStatic, Index: Index,

Source

pub fn into_af5_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<5>>::AFR, ) -> Pin<Gpio, Index, AF5<PushPull>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull() instead

Configures the pin to operate as an alternate function push-pull output pin

Source

pub fn into_af5_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<5>>::AFR, ) -> Pin<Gpio, Index, AF5<OpenDrain>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain() instead

Configures the pin to operate as an alternate function open-drain output pin

Source§

impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
where Self: IntoAf<6>, Gpio: GpioStatic, Index: Index,

Source

pub fn into_af6_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<6>>::AFR, ) -> Pin<Gpio, Index, AF6<PushPull>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull() instead

Configures the pin to operate as an alternate function push-pull output pin

Source

pub fn into_af6_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<6>>::AFR, ) -> Pin<Gpio, Index, AF6<OpenDrain>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain() instead

Configures the pin to operate as an alternate function open-drain output pin

Source§

impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
where Self: IntoAf<7>, Gpio: GpioStatic, Index: Index,

Source

pub fn into_af7_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<7>>::AFR, ) -> Pin<Gpio, Index, AF7<PushPull>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull() instead

Configures the pin to operate as an alternate function push-pull output pin

Source

pub fn into_af7_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<7>>::AFR, ) -> Pin<Gpio, Index, AF7<OpenDrain>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain() instead

Configures the pin to operate as an alternate function open-drain output pin

Source§

impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
where Self: IntoAf<8>, Gpio: GpioStatic, Index: Index,

Source

pub fn into_af8_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<8>>::AFR, ) -> Pin<Gpio, Index, AF8<PushPull>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull() instead

Configures the pin to operate as an alternate function push-pull output pin

Source

pub fn into_af8_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<8>>::AFR, ) -> Pin<Gpio, Index, AF8<OpenDrain>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain() instead

Configures the pin to operate as an alternate function open-drain output pin

Source§

impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
where Self: IntoAf<9>, Gpio: GpioStatic, Index: Index,

Source

pub fn into_af9_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<9>>::AFR, ) -> Pin<Gpio, Index, AF9<PushPull>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull() instead

Configures the pin to operate as an alternate function push-pull output pin

Source

pub fn into_af9_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<9>>::AFR, ) -> Pin<Gpio, Index, AF9<OpenDrain>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain() instead

Configures the pin to operate as an alternate function open-drain output pin

Source§

impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
where Self: IntoAf<10>, Gpio: GpioStatic, Index: Index,

Source

pub fn into_af10_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<10>>::AFR, ) -> Pin<Gpio, Index, AF10<PushPull>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull() instead

Configures the pin to operate as an alternate function push-pull output pin

Source

pub fn into_af10_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<10>>::AFR, ) -> Pin<Gpio, Index, AF10<OpenDrain>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain() instead

Configures the pin to operate as an alternate function open-drain output pin

Source§

impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
where Self: IntoAf<11>, Gpio: GpioStatic, Index: Index,

Source

pub fn into_af11_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<11>>::AFR, ) -> Pin<Gpio, Index, AF11<PushPull>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull() instead

Configures the pin to operate as an alternate function push-pull output pin

Source

pub fn into_af11_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<11>>::AFR, ) -> Pin<Gpio, Index, AF11<OpenDrain>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain() instead

Configures the pin to operate as an alternate function open-drain output pin

Source§

impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
where Self: IntoAf<12>, Gpio: GpioStatic, Index: Index,

Source

pub fn into_af12_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<12>>::AFR, ) -> Pin<Gpio, Index, AF12<PushPull>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull() instead

Configures the pin to operate as an alternate function push-pull output pin

Source

pub fn into_af12_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<12>>::AFR, ) -> Pin<Gpio, Index, AF12<OpenDrain>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain() instead

Configures the pin to operate as an alternate function open-drain output pin

Source§

impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
where Self: IntoAf<13>, Gpio: GpioStatic, Index: Index,

Source

pub fn into_af13_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<13>>::AFR, ) -> Pin<Gpio, Index, AF13<PushPull>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull() instead

Configures the pin to operate as an alternate function push-pull output pin

Source

pub fn into_af13_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<13>>::AFR, ) -> Pin<Gpio, Index, AF13<OpenDrain>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain() instead

Configures the pin to operate as an alternate function open-drain output pin

Source§

impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
where Self: IntoAf<14>, Gpio: GpioStatic, Index: Index,

Source

pub fn into_af14_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<14>>::AFR, ) -> Pin<Gpio, Index, AF14<PushPull>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull() instead

Configures the pin to operate as an alternate function push-pull output pin

Source

pub fn into_af14_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<14>>::AFR, ) -> Pin<Gpio, Index, AF14<OpenDrain>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain() instead

Configures the pin to operate as an alternate function open-drain output pin

Source§

impl<Gpio, Index, Mode> Pin<Gpio, Index, Mode>
where Self: IntoAf<15>, Gpio: GpioStatic, Index: Index,

Source

pub fn into_af15_push_pull( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<15>>::AFR, ) -> Pin<Gpio, Index, AF15<PushPull>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_push_pull() instead

Configures the pin to operate as an alternate function push-pull output pin

Source

pub fn into_af15_open_drain( self, moder: &mut Gpio::MODER, otyper: &mut Gpio::OTYPER, afr: &mut <Self as IntoAf<15>>::AFR, ) -> Pin<Gpio, Index, AF15<OpenDrain>>

👎Deprecated since 0.9.0: Will be removed with the next version. Use into_af_open_drain() instead

Configures the pin to operate as an alternate function open-drain output pin

Trait Implementations§

Source§

impl<Gpio: Debug, Index: Debug, Mode: Debug> Debug for Pin<Gpio, Index, Mode>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Gpio, Index, Mode> InputPin for Pin<Gpio, Index, Mode>
where Gpio: Gpio, Index: Index, Mode: Readable,

Source§

type Error = Infallible

Error type
Source§

fn is_high(&self) -> Result<bool, Self::Error>

Is the input pin high?
Source§

fn is_low(&self) -> Result<bool, Self::Error>

Is the input pin low?
Source§

impl<Gpio, Index, Otype> OutputPin for Pin<Gpio, Index, Output<Otype>>
where Gpio: Gpio, Index: Index,

Source§

type Error = Infallible

Error type
Source§

fn set_high(&mut self) -> Result<(), Self::Error>

Drives the pin high Read more
Source§

fn set_low(&mut self) -> Result<(), Self::Error>

Drives the pin low Read more
Source§

fn set_state(&mut self, state: PinState) -> Result<(), Self::Error>

Drives the pin high or low depending on the provided value Read more
Source§

impl<Gpio, Index, Otype> StatefulOutputPin for Pin<Gpio, Index, Output<Otype>>
where Gpio: Gpio, Index: Index,

Source§

fn is_set_high(&self) -> Result<bool, Self::Error>

Is the pin in drive high mode? Read more
Source§

fn is_set_low(&self) -> Result<bool, Self::Error>

Is the pin in drive low mode? Read more
Source§

impl<Gpio, Index, Otype> Default for Pin<Gpio, Index, Output<Otype>>
where Gpio: Gpio, Index: Index,

Auto Trait Implementations§

§

impl<Gpio, Index, Mode> Freeze for Pin<Gpio, Index, Mode>
where Gpio: Freeze, Index: Freeze,

§

impl<Gpio, Index, Mode> RefUnwindSafe for Pin<Gpio, Index, Mode>
where Gpio: RefUnwindSafe, Index: RefUnwindSafe, Mode: RefUnwindSafe,

§

impl<Gpio, Index, Mode> Send for Pin<Gpio, Index, Mode>
where Gpio: Send, Index: Send, Mode: Send,

§

impl<Gpio, Index, Mode> Sync for Pin<Gpio, Index, Mode>
where Gpio: Sync, Index: Sync, Mode: Sync,

§

impl<Gpio, Index, Mode> Unpin for Pin<Gpio, Index, Mode>
where Gpio: Unpin, Index: Unpin, Mode: Unpin,

§

impl<Gpio, Index, Mode> UnwindSafe for Pin<Gpio, Index, Mode>
where Gpio: UnwindSafe, Index: UnwindSafe, Mode: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P> ToggleableOutputPin for P
where P: Default,

Source§

fn toggle(&mut self) -> Result<(), <P as ToggleableOutputPin>::Error>

Toggle pin output

Source§

type Error = <P as OutputPin>::Error

Error type
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.