pub struct PromptDiagnostic { /* private fields */ }Expand description
Bounded deterministic compiler diagnostic without prompt content.
Implementations§
Source§impl PromptDiagnostic
impl PromptDiagnostic
Sourcepub const fn code(&self) -> PromptDiagnosticCode
pub const fn code(&self) -> PromptDiagnosticCode
Returns stable diagnostic code.
Sourcepub const fn segment_id(&self) -> &PromptSegmentId
pub const fn segment_id(&self) -> &PromptSegmentId
Returns affected segment.
Sourcepub const fn winner_id(&self) -> Option<&PromptSegmentId>
pub const fn winner_id(&self) -> Option<&PromptSegmentId>
Returns winning segment for conflict/duplicate diagnostics.
Sourcepub const fn conflict_key(&self) -> Option<&ConflictKey>
pub const fn conflict_key(&self) -> Option<&ConflictKey>
Returns affected conflict key when applicable.
Trait Implementations§
Source§impl Clone for PromptDiagnostic
impl Clone for PromptDiagnostic
Source§fn clone(&self) -> PromptDiagnostic
fn clone(&self) -> PromptDiagnostic
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 moreSource§impl Debug for PromptDiagnostic
impl Debug for PromptDiagnostic
impl Eq for PromptDiagnostic
Source§impl PartialEq for PromptDiagnostic
impl PartialEq for PromptDiagnostic
impl StructuralPartialEq for PromptDiagnostic
Auto Trait Implementations§
impl Freeze for PromptDiagnostic
impl RefUnwindSafe for PromptDiagnostic
impl Send for PromptDiagnostic
impl Sync for PromptDiagnostic
impl Unpin for PromptDiagnostic
impl UnsafeUnpin for PromptDiagnostic
impl UnwindSafe for PromptDiagnostic
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