pub struct Export {
pub name: String,
pub is_default: bool,
pub is_type_only: bool,
pub line: usize,
pub end_line: usize,
}Expand description
An export declaration extracted from source code.
Fields§
§name: String§is_default: bool§is_type_only: bool§line: usize§end_line: usize1-indexed source line where the export declaration ends.
Equals Self::line for single-line statements such as
pub use foo::*;, export { Foo };, or type Alias = X;. For
multi-line declarations (e.g. export class Foo { ... }) this is the
closing line of the declaration node — matching the existing
Function::end_line semantics. Hunk-intersection logic in
map_diff_impact uses [line, end_line] as the symbol’s range.
Required (no #[serde(default)]): IR_SCHEMA_VERSION 8 added this
field; older v7 IR rows fail StaleIR detection and are re-scanned,
so deserialisation here should never legitimately encounter a
missing value. Failing loudly surfaces actual data corruption.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Export
impl<'de> Deserialize<'de> for Export
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Export
impl RefUnwindSafe for Export
impl Send for Export
impl Sync for Export
impl Unpin for Export
impl UnsafeUnpin for Export
impl UnwindSafe for Export
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