pub struct TeksiIf {
pub cond: Expr,
pub then: TeksiElement,
pub else_branch: Option<Box<TeksiElse>>,
pub span: Span,
pub body_close: Span,
}Fields§
§cond: Expr§then: TeksiElement§else_branch: Option<Box<TeksiElse>>§span: Span§body_close: SpanSpan of the } that closes this if’s then block. Held by every
TeksiIf (including else-if recursion) so consumers can compute
the rightmost byte of an if-chain. Inner TeksiElements carry no
braces of their own — the structural form owns them.
Auto Trait Implementations§
impl !Send for TeksiIf
impl !Sync for TeksiIf
impl Freeze for TeksiIf
impl RefUnwindSafe for TeksiIf
impl Unpin for TeksiIf
impl UnsafeUnpin for TeksiIf
impl UnwindSafe for TeksiIf
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