#[repr(u8)]pub enum FileSurface {
Synthetic = 0,
Ink = 1,
Native = 2,
}Expand description
Which frontend parsed a DebugInfo file-table entry’s file
(docs/debugger-spec.md §2.3) — KindToken::raw is frontend-private
(two independent ProvenanceResolver numberings), so a reader must know
which resolver applies before interpreting an entry’s kind_token.
Recorded once per file (not per entry) since surface is a property of
where the code came from, constant for every entry pointing at that
file.
Variants§
Synthetic = 0
The reserved sentinel file (index 0) — synthetic provenance
(Provenance::synthetic’s FileId(u32::MAX), §2.5). Never a real
file; path is always empty for this surface.
Ink = 1
Parsed by the .ink compatibility surface (brink-syntax).
Native = 2
Parsed by the .brink native surface (brink-syntax-native).
Trait Implementations§
Source§impl Clone for FileSurface
impl Clone for FileSurface
Source§fn clone(&self) -> FileSurface
fn clone(&self) -> FileSurface
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FileSurface
Source§impl Debug for FileSurface
impl Debug for FileSurface
impl Eq for FileSurface
Source§impl PartialEq for FileSurface
impl PartialEq for FileSurface
impl StructuralPartialEq for FileSurface
Auto Trait Implementations§
impl Freeze for FileSurface
impl RefUnwindSafe for FileSurface
impl Send for FileSurface
impl Sync for FileSurface
impl Unpin for FileSurface
impl UnsafeUnpin for FileSurface
impl UnwindSafe for FileSurface
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