re-export
Making an item available from a second, usually shorter, path.
A pub use declaration re-exports an item, so users can name it by the new path and the crate's internal module layout can stay private and change freely.
Loading interactive…
Examples
pub use crate::sensors::soil::Moisture;insrc/lib.rslets users writegreenhouse::Moisturewhile thesensorsmodule stays private.
See also