pub struct PhpDiagnostic { /* private fields */ }Expand description
PHP diagnostic metadata.
Implementations§
Source§impl PhpDiagnostic
impl PhpDiagnostic
pub const fn new( kind: PhpErrorKind, severity: PhpSeverity, message: DiagnosticMessage, ) -> Self
pub fn with_source(self, source: DiagnosticSource) -> Self
pub const fn kind(&self) -> PhpErrorKind
pub const fn severity(&self) -> PhpSeverity
pub const fn message(&self) -> &DiagnosticMessage
pub const fn source(&self) -> Option<&DiagnosticSource>
Trait Implementations§
Source§impl Clone for PhpDiagnostic
impl Clone for PhpDiagnostic
Source§fn clone(&self) -> PhpDiagnostic
fn clone(&self) -> PhpDiagnostic
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 PhpDiagnostic
impl Debug for PhpDiagnostic
Source§impl PartialEq for PhpDiagnostic
impl PartialEq for PhpDiagnostic
Source§fn eq(&self, other: &PhpDiagnostic) -> bool
fn eq(&self, other: &PhpDiagnostic) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PhpDiagnostic
impl StructuralPartialEq for PhpDiagnostic
Auto Trait Implementations§
impl Freeze for PhpDiagnostic
impl RefUnwindSafe for PhpDiagnostic
impl Send for PhpDiagnostic
impl Sync for PhpDiagnostic
impl Unpin for PhpDiagnostic
impl UnsafeUnpin for PhpDiagnostic
impl UnwindSafe for PhpDiagnostic
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