pub struct YamlDiagnostic {
pub code: &'static str,
pub line: usize,
pub column: usize,
pub message: String,
}Expand description
Stable YAML diagnostic emitted before semantic contract compilation.
§Fields
code: Stored field onYamlDiagnostic.line: Stored field onYamlDiagnostic.column: Stored field onYamlDiagnostic.message: Stored field onYamlDiagnostic.
§Examples
ⓘ
let _ = std::mem::size_of::<pharos_runtime_core::yaml::YamlDiagnostic>();§Related
crate::yamlfor constructors, helpers, and neighboring runtime types.
Fields§
§code: &'static str§line: usize§column: usize§message: StringTrait Implementations§
Source§impl Clone for YamlDiagnostic
impl Clone for YamlDiagnostic
Source§fn clone(&self) -> YamlDiagnostic
fn clone(&self) -> YamlDiagnostic
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 YamlDiagnostic
impl Debug for YamlDiagnostic
Source§impl PartialEq for YamlDiagnostic
impl PartialEq for YamlDiagnostic
Source§fn eq(&self, other: &YamlDiagnostic) -> bool
fn eq(&self, other: &YamlDiagnostic) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for YamlDiagnostic
impl StructuralPartialEq for YamlDiagnostic
Auto Trait Implementations§
impl Freeze for YamlDiagnostic
impl RefUnwindSafe for YamlDiagnostic
impl Send for YamlDiagnostic
impl Sync for YamlDiagnostic
impl Unpin for YamlDiagnostic
impl UnsafeUnpin for YamlDiagnostic
impl UnwindSafe for YamlDiagnostic
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.