Skip to main content

ImportAdapter

Trait ImportAdapter 

Source
pub trait ImportAdapter {
    type Source: ?Sized;

    // Required method
    fn import(&self, source: &Self::Source) -> ImportResult;
}
Expand description

Maps one native source model into the format-independent application model.

Required Associated Types§

Source

type Source: ?Sized

Native source model accepted by this adapter.

Required Methods§

Source

fn import(&self, source: &Self::Source) -> ImportResult

Imports one source without reading ambient process state.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§