import

Macro import 

Source
macro_rules! import {
    (
        $vis:vis $class:ident :
        use $([$base:ident $($path:tt)*])+ ;
        $($custom_use:tt)*
    ) => { ... };
}
Expand description

Imports base class into the current scope so that it can be inherited from.

The macro accepts input in the following form:

$vis:vis $class:ident :
use $([$base:ident $path:path])+ ;
$( $(#[$attr:meta])* use $($custom_use:tt)+ ; )*

See module documentation for explanation how to use it.