pub trait IntoItem {
// Required method
fn into_item(self, visibility: Visibility) -> Item;
// Provided methods
fn into_inherited_item(self) -> Item
where Self: Sized { ... }
fn into_public_item(self) -> Item
where Self: Sized { ... }
fn into_scoped_item(self, scope: VisibilityScope) -> Item
where Self: Sized { ... }
}Required Methods§
Sourcefn into_item(self, visibility: Visibility) -> Item
fn into_item(self, visibility: Visibility) -> Item
Creates an item with the given visibility.
Provided Methods§
Sourcefn into_inherited_item(self) -> Itemwhere
Self: Sized,
fn into_inherited_item(self) -> Itemwhere
Self: Sized,
Creates an item with inherited (mostly private) visibility.
Sourcefn into_public_item(self) -> Itemwhere
Self: Sized,
fn into_public_item(self) -> Itemwhere
Self: Sized,
Creates an item with public visibility.
Sourcefn into_scoped_item(self, scope: VisibilityScope) -> Itemwhere
Self: Sized,
fn into_scoped_item(self, scope: VisibilityScope) -> Itemwhere
Self: Sized,
Creates an item with the given visibility scope.