Struct full_moon::ast::If [−][src]
pub struct If<'a> { /* fields omitted */ }
Expand description
An if statement
Implementations
Creates a new If from the given condition
The if
token
The condition of the if statement, condition
in if condition then
The then
token
The else
token if one exists
If there are elseif
conditions, returns a vector of them
Expression is the condition, block is the code if the condition is true
The code inside an else
block if one exists
The end
token
Returns a new If with the given if
token
Returns a new If with the given condition
Returns a new If with the given then
token
Returns a new If with the given block
Returns a new If with the given list of elseif
blocks
Returns a new If with the given else
token
Returns a new If with the given else
body
Returns a new If with the given end
token
Trait Implementations
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
The start position of a node. None if can’t be determined
The end position of a node. None if it can’t be determined
Whether another node of the same type is the same as this one semantically, ignoring position
The token references that comprise a node
The full range of a node, if it has both start and end positions
The tokens surrounding a node that are ignored and not accessible through the node’s own accessors. Use this if you want to get surrounding comments or whitespace. Returns a tuple of the leading and trailing trivia. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for If<'a>
impl<'a> UnwindSafe for If<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more