/// Get the sort key for the statement.
///
/// This allows a collection of statements to be reordered into:
/// * Uses
/// * Items
/// * Macro expansions.
/// * The rest, expressions, local decl, etc...
///
/// Note that the sort implementation must be stable, to make sure that
/// intermediate items are not affected.
Get the sort key for the statement.
This allows a collection of statements to be reordered into:
Uses
Items
Macro expansions.
The rest, expressions, local decl, etc

Note that the sort implementation must be stable, to make sure that
intermediate items are not affected.
Get the sort key for the statement . This allows a collection of statements to be reordered into : Uses Items Macro expansions . The rest expressions local decl etc Note that the sort implementation must be stable to make sure that intermediate items are not affected .
pub fn sort_key(&self) -> StmtSortKey {
        match self {
            Stmt::Item(item, _) => match item {
                ast::Item::Use(_) => StmtSortKey::Use,
                ast::Item::MacroCall(_) => StmtSortKey::Other,
                _ => StmtSortKey::Item,
            },
            _ => StmtSortKey::Other,
        }
    }
pub fn sort_key ( & self ) -> StmtSortKey { match self { Stmt :: Item ( item , _ ) => match item { ast :: Item :: Use ( _ ) => StmtSortKey :: Use , ast :: Item :: MacroCall ( _ ) => StmtSortKey :: Other , _ => StmtSortKey :: Item , } , _ => StmtSortKey :: Other , } }
Get the sort key for the statement.
Get the sort key for the statement .
&self