pub struct TernaryExpression {
pub condition: Box<Expression>,
pub if_true: Box<Expression>,
pub if_false: Box<Expression>,
pub span: Span,
}
Fields§
§condition: Box<Expression>
§if_true: Box<Expression>
§if_false: Box<Expression>
§span: Span
Trait Implementations§
Source§impl Clone for TernaryExpression
impl Clone for TernaryExpression
Source§fn clone(&self) -> TernaryExpression
fn clone(&self) -> TernaryExpression
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for TernaryExpression
impl<'de> Deserialize<'de> for TernaryExpression
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
Auto Trait Implementations§
impl Freeze for TernaryExpression
impl RefUnwindSafe for TernaryExpression
impl Send for TernaryExpression
impl Sync for TernaryExpression
impl Unpin for TernaryExpression
impl UnwindSafe for TernaryExpression
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