Enum reform::structure::IfCondition [−][src]
pub enum IfCondition<ID: Id = VarName> { Match(Element<ID>), Defined(Element<ID>), Comparison(Element<ID>, Element<ID>, Ordering), }
Variants
Match(Element<ID>)
Defined(Element<ID>)
Comparison(Element<ID>, Element<ID>, Ordering)
Methods
impl IfCondition
[src]
impl IfCondition
pub fn contains_dollar(&self) -> bool
[src]
pub fn contains_dollar(&self) -> bool
pub fn replace_dollar(
&mut self,
map: &HashMap<VarName, HashMap<Vec<Element>, Element>>
) -> ReplaceResult
[src]
pub fn replace_dollar(
&mut self,
map: &HashMap<VarName, HashMap<Vec<Element>, Element>>
) -> ReplaceResult
pub fn replace_elements(&mut self, map: &HashMap<VarName, Element>) -> bool
[src]
pub fn replace_elements(&mut self, map: &HashMap<VarName, Element>) -> bool
pub fn normalize_inplace(&mut self, var_info: &GlobalVarInfo)
[src]
pub fn normalize_inplace(&mut self, var_info: &GlobalVarInfo)
pub fn fmt_output(
&self,
f: &mut Formatter,
print_mode: PrintMode,
var_info: &GlobalVarInfo
) -> Result
[src]
pub fn fmt_output(
&self,
f: &mut Formatter,
print_mode: PrintMode,
var_info: &GlobalVarInfo
) -> Result
Trait Implementations
impl<ID: Debug + Id> Debug for IfCondition<ID>
[src]
impl<ID: Debug + Id> Debug for IfCondition<ID>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<ID: Clone + Id> Clone for IfCondition<ID>
[src]
impl<ID: Clone + Id> Clone for IfCondition<ID>
fn clone(&self) -> IfCondition<ID>
[src]
fn clone(&self) -> IfCondition<ID>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Display for IfCondition
[src]
impl Display for IfCondition
Auto Trait Implementations
impl<ID> Send for IfCondition<ID> where
ID: Send,
impl<ID> Send for IfCondition<ID> where
ID: Send,
impl<ID> Sync for IfCondition<ID> where
ID: Sync,
impl<ID> Sync for IfCondition<ID> where
ID: Sync,