pub struct ChainPlan<'s> { /* private fields */ }Expand description
一条链的生成计划。
Implementations§
Source§impl<'s> ChainPlan<'s>
impl<'s> ChainPlan<'s>
Sourcepub fn returns_option(&self) -> bool
pub fn returns_option(&self) -> bool
是否应生成 Option<&T> 返回类型(链上任一段被判空过)。
Sourcepub fn is_constant_undefined(&self) -> bool
pub fn is_constant_undefined(&self) -> bool
整条链在 JS 里恒为 undefined(负下标、非整数常量下标),codegen 可折成 None。
Sourcepub fn diagnostics(&self) -> &[Diagnostic]
pub fn diagnostics(&self) -> &[Diagnostic]
诊断列表(错误与告警混排,按段序)。
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
是否存在阻断级诊断。
Sourcepub fn has_warnings(&self) -> bool
pub fn has_warnings(&self) -> bool
是否存在告警。
Trait Implementations§
impl<'s> StructuralPartialEq for ChainPlan<'s>
Auto Trait Implementations§
impl<'s> Forget for ChainPlan<'s>
impl<'s> Freeze for ChainPlan<'s>
impl<'s> Move for ChainPlan<'s>
impl<'s> RefUnwindSafe for ChainPlan<'s>
impl<'s> Send for ChainPlan<'s>
impl<'s> Sync for ChainPlan<'s>where
RawVecInner: Sync,
impl<'s> Unpin for ChainPlan<'s>
impl<'s> UnsafeUnpin for ChainPlan<'s>where
*const u8 is !null: UnsafeUnpin,
PhantomData<Step<'s>>: UnsafeUnpin,
PhantomData<Diagnostic>: UnsafeUnpin,
impl<'s> UnwindSafe for ChainPlan<'s>
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