Today — Screen::with_styles() returns ScreenWithStyles<'_> (screen.rs:1867). The type is pub (screen.rs:2037) but lives in the private mod screen (lib.rs:114) and is not in the crate's re-export list (lib.rs:127). It is therefore reachable but unnameable from outside the crate: a consumer can call .with_styles() and pass the result straight to insta, but cannot store it in a struct field, return it from a helper, or write fn f(s: ScreenWithStyles).
Fix. Add ScreenWithStyles to pub use screen::{…} with a one-line doc pointing at Screen::with_styles. Additive.
Done when
Today —
Screen::with_styles()returnsScreenWithStyles<'_>(screen.rs:1867). The type ispub(screen.rs:2037) but lives in the privatemod screen(lib.rs:114) and is not in the crate's re-export list (lib.rs:127). It is therefore reachable but unnameable from outside the crate: a consumer can call.with_styles()and pass the result straight toinsta, but cannot store it in a struct field, return it from a helper, or writefn f(s: ScreenWithStyles).Fix. Add
ScreenWithStylestopub use screen::{…}with a one-line doc pointing atScreen::with_styles. Additive.Done when
termlens::ScreenWithStylesnames the type from a consumer crate (a doctest proves it).