[][src]Struct ucglib::convert::ConverterRegistry

pub struct ConverterRegistry { /* fields omitted */ }

ConverterRunner knows how to run a given converter on a Val.

Methods

impl ConverterRegistry[src]

pub fn make_registry() -> Self[src]

pub fn register<S: Into<String>>(
    &mut self,
    typ: S,
    converter: Box<dyn Converter>
)
[src]

pub fn get_converter(&self, typ: &str) -> Option<&dyn Converter>[src]

pub fn get_converter_list(&self) -> Vec<(&String, &Box<dyn Converter>)>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]