pub struct TypeCheckState {
pub committed_stubs: String,
pub pending_snippet: Option<String>,
pub config: TypeCheckingConfig,
pub committed_imports: String,
pub pending_imports: String,
pub asked_modules: Vec<String>,
}Expand description
Per-session type-check state: successfully committed snippets accumulate as stubs so later snippets can reference names defined by earlier ones.
Fields§
§committed_stubs: StringUser-provided stubs plus every snippet that has completed successfully.
pending_snippet: Option<String>The in-flight snippet; committed on success, discarded on error.
config: TypeCheckingConfigHow diagnostics are rendered by whoever runs the type checker.
committed_imports: StringCommitted imports, injected before the stubs’ star import to preserve bindings .pyi files omit.
pending_imports: StringImports from pending_snippet, appended to committed_imports on commit.
asked_modules: Vec<String>Modules already requested from the host, including modules without stubs, to avoid asking twice.
Trait Implementations§
Source§impl Clone for TypeCheckState
impl Clone for TypeCheckState
Source§impl Debug for TypeCheckState
impl Debug for TypeCheckState
Source§impl<'de> Deserialize<'de> for TypeCheckState
impl<'de> Deserialize<'de> for TypeCheckState
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 TypeCheckState
impl RefUnwindSafe for TypeCheckState
impl Send for TypeCheckState
impl Sync for TypeCheckState
impl Unpin for TypeCheckState
impl UnsafeUnpin for TypeCheckState
impl UnwindSafe for TypeCheckState
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