pub struct GraphDiagnostics {
pub warnings: Vec<Diagnostic>,
pub infos: Vec<Diagnostic>,
}Expand description
图诊断结果 — 由 graph.analyze() 产生。
检查风险性问题:环检测、Fallback 参与循环、不可达路径、条件边重叠、End 节点有出边。
Fields§
§warnings: Vec<Diagnostic>§infos: Vec<Diagnostic>Implementations§
Source§impl GraphDiagnostics
impl GraphDiagnostics
pub fn new() -> Self
pub fn add_warning( &mut self, category: DiagnosticCategory, message: impl Into<String>, )
pub fn add_info( &mut self, category: DiagnosticCategory, message: impl Into<String>, )
pub fn is_empty(&self) -> bool
pub fn has_warnings(&self) -> bool
Trait Implementations§
Source§impl Clone for GraphDiagnostics
impl Clone for GraphDiagnostics
Source§fn clone(&self) -> GraphDiagnostics
fn clone(&self) -> GraphDiagnostics
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 GraphDiagnostics
impl Debug for GraphDiagnostics
Source§impl Default for GraphDiagnostics
impl Default for GraphDiagnostics
Source§fn default() -> GraphDiagnostics
fn default() -> GraphDiagnostics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GraphDiagnostics
impl RefUnwindSafe for GraphDiagnostics
impl Send for GraphDiagnostics
impl Sync for GraphDiagnostics
impl Unpin for GraphDiagnostics
impl UnsafeUnpin for GraphDiagnostics
impl UnwindSafe for GraphDiagnostics
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