pub enum Reexport {
AsDeclared,
Always,
Never,
}Expand description
How an import’s own visibility affects re-export.
§Examples
use resolve_lang::{Policy, Reexport};
assert_eq!(Policy::python().reexport(), Reexport::Always);Variants§
AsDeclared
An import is visible to other modules exactly as its item’s Vis
says (pub use re-exports, plain use does not).
Always
Every import becomes part of the module’s exports (Python: an imported name is a module attribute).
Never
Imports are never exported (PHP: use is file-local).
Trait Implementations§
impl Copy for Reexport
impl Eq for Reexport
impl StructuralPartialEq for Reexport
Auto Trait Implementations§
impl Freeze for Reexport
impl RefUnwindSafe for Reexport
impl Send for Reexport
impl Sync for Reexport
impl Unpin for Reexport
impl UnsafeUnpin for Reexport
impl UnwindSafe for Reexport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more