Struct foundry_compilers::artifacts::ast::Conditional   
source · pub struct Conditional {
    pub id: usize,
    pub src: SourceLocation,
    pub argument_types: Vec<TypeDescriptions>,
    pub is_constant: bool,
    pub is_l_value: bool,
    pub is_pure: bool,
    pub l_value_requested: bool,
    pub type_descriptions: TypeDescriptions,
    pub condition: Expression,
    pub false_expression: Expression,
    pub true_expression: Expression,
}Expand description
A conditional expression.
Fields§
§id: usize§src: SourceLocation§argument_types: Vec<TypeDescriptions>§is_constant: bool§is_l_value: bool§is_pure: bool§l_value_requested: bool§type_descriptions: TypeDescriptions§condition: ExpressionThe condition.
false_expression: ExpressionThe expression to evaluate if falsy.
true_expression: ExpressionThe expression to evaluate if truthy.
Trait Implementations§
source§impl Clone for Conditional
 
impl Clone for Conditional
source§fn clone(&self) -> Conditional
 
fn clone(&self) -> Conditional
Returns a copy 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 Debug for Conditional
 
impl Debug for Conditional
source§impl<'de> Deserialize<'de> for Conditional
 
impl<'de> Deserialize<'de> for Conditional
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
source§impl PartialEq for Conditional
 
impl PartialEq for Conditional
source§fn eq(&self, other: &Conditional) -> bool
 
fn eq(&self, other: &Conditional) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl Serialize for Conditional
 
impl Serialize for Conditional
impl Eq for Conditional
impl StructuralEq for Conditional
impl StructuralPartialEq for Conditional
Auto Trait Implementations§
impl RefUnwindSafe for Conditional
impl Send for Conditional
impl Sync for Conditional
impl Unpin for Conditional
impl UnwindSafe for Conditional
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
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.