pub enum FileState {
Green,
Red,
}Expand description
Per-file compile verdict.
v0 granularity is file-level (decision D4). Symbol-level tracking is
what rust-analyzer does internally and is an explicit v1 want — out of v0 by
construction. The verdict itself is the signal here; a Red deliberately
carries no diagnostic payload in v0 so this type stays Copy and
dependency-free. Human-readable detail is the daemon/CLI’s job to surface
from its own analyzer state, not something every contract consumer must
thread through.
Variants§
Trait Implementations§
impl Copy for FileState
impl Eq for FileState
impl StructuralPartialEq for FileState
Auto Trait Implementations§
impl Freeze for FileState
impl RefUnwindSafe for FileState
impl Send for FileState
impl Sync for FileState
impl Unpin for FileState
impl UnsafeUnpin for FileState
impl UnwindSafe for FileState
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