pub struct LoweredLocalTypes {
pub diagnostics: Vec<Diagnostic>,
pub scopes: BTreeMap<String, Span>,
}Expand description
What lifting block-local type declarations to module scope recorded.
Fields§
§diagnostics: Vec<Diagnostic>Errors for local types that can’t be lifted or clash with another name, reported by inference.
scopes: BTreeMap<String, Span>The block, or a switch’s arms from its first label, each lifted type is visible in, by its key.
Trait Implementations§
Source§impl Clone for LoweredLocalTypes
impl Clone for LoweredLocalTypes
Source§impl Debug for LoweredLocalTypes
impl Debug for LoweredLocalTypes
Auto Trait Implementations§
impl Forget for LoweredLocalTypes
impl Freeze for LoweredLocalTypes
impl RefUnwindSafe for LoweredLocalTypes
impl Send for LoweredLocalTypes
impl Sync for LoweredLocalTypes
impl Unpin for LoweredLocalTypes
impl UnsafeUnpin for LoweredLocalTypes
impl UnwindSafe for LoweredLocalTypes
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