[−][src]Struct vhdl_parser::Diagnostic
Fields
pos: SrcPos
message: String
severity: Severity
Methods
impl Diagnostic
[src]
pub fn new(
item: impl AsRef<SrcPos>,
msg: impl Into<String>,
severity: Severity
) -> Diagnostic
[src]
item: impl AsRef<SrcPos>,
msg: impl Into<String>,
severity: Severity
) -> Diagnostic
pub fn error(item: impl AsRef<SrcPos>, msg: impl Into<String>) -> Diagnostic
[src]
pub fn warning(item: impl AsRef<SrcPos>, msg: impl Into<String>) -> Diagnostic
[src]
pub fn hint(item: impl AsRef<SrcPos>, msg: impl Into<String>) -> Diagnostic
[src]
pub fn info(item: impl AsRef<SrcPos>, msg: impl Into<String>) -> Diagnostic
[src]
pub fn when(self, message: impl AsRef<str>) -> Diagnostic
[src]
pub fn related(
self,
item: impl AsRef<SrcPos>,
message: impl Into<String>
) -> Diagnostic
[src]
self,
item: impl AsRef<SrcPos>,
message: impl Into<String>
) -> Diagnostic
pub fn add_related(
&mut self,
item: impl AsRef<SrcPos>,
message: impl Into<String>
)
[src]
&mut self,
item: impl AsRef<SrcPos>,
message: impl Into<String>
)
pub fn drain_related(&mut self) -> Vec<Diagnostic>
[src]
pub fn show(&self) -> String
[src]
Trait Implementations
impl Clone for Diagnostic
[src]
fn clone(&self) -> Diagnostic
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Diagnostic
[src]
impl Eq for Diagnostic
[src]
impl Hash for Diagnostic
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Diagnostic> for Diagnostic
[src]
fn eq(&self, other: &Diagnostic) -> bool
[src]
fn ne(&self, other: &Diagnostic) -> bool
[src]
impl StructuralEq for Diagnostic
[src]
impl StructuralPartialEq for Diagnostic
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl !UnwindSafe for Diagnostic
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,