pub struct UIIf {
pub condition: Expr,
pub then_block: UIBlock,
pub else_block: Option<UIElse>,
pub span: Span,
}Expand description
if in a UI context — bodies contain UIElements, not Statements.
Fields§
§condition: Expr§then_block: UIBlock§else_block: Option<UIElse>§span: SpanTrait Implementations§
Source§impl<'de> Deserialize<'de> for UIIf
impl<'de> Deserialize<'de> for UIIf
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for UIIf
Auto Trait Implementations§
impl Freeze for UIIf
impl RefUnwindSafe for UIIf
impl Send for UIIf
impl Sync for UIIf
impl Unpin for UIIf
impl UnwindSafe for UIIf
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