pub struct IfStatement {
pub attributes: Attributes,
pub if_clause: IfClause,
pub else_if_clauses: Vec<ElseIfClause>,
pub else_clause: Option<ElseClause>,
}
Fields§
§attributes: Attributes
§if_clause: IfClause
§else_if_clauses: Vec<ElseIfClause>
§else_clause: Option<ElseClause>
Trait Implementations§
Source§impl Clone for IfStatement
impl Clone for IfStatement
Source§fn clone(&self) -> IfStatement
fn clone(&self) -> IfStatement
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 Debug for IfStatement
impl Debug for IfStatement
Source§impl Decorated for IfStatement
impl Decorated for IfStatement
Source§fn attributes(&self) -> &[AttributeNode] ⓘ
fn attributes(&self) -> &[AttributeNode] ⓘ
List all attributes (
@name
) of a syntax node.Source§fn attributes_mut(&mut self) -> &mut [AttributeNode] ⓘ
fn attributes_mut(&mut self) -> &mut [AttributeNode] ⓘ
List all attributes (
@name
) of a syntax node.Source§fn retain_attributes_mut<F>(&mut self, f: F)
fn retain_attributes_mut<F>(&mut self, f: F)
Remove attributes with predicate.
Source§fn contains_attribute(&self, attribute: &Attribute) -> bool
fn contains_attribute(&self, attribute: &Attribute) -> bool
Remove attributes with predicate.
Source§impl Display for IfStatement
impl Display for IfStatement
Source§impl From<IfStatement> for Statement
impl From<IfStatement> for Statement
Source§fn from(value: IfStatement) -> Self
fn from(value: IfStatement) -> Self
Converts to this type from the input type.
Source§impl PartialEq for IfStatement
impl PartialEq for IfStatement
impl StructuralPartialEq for IfStatement
Auto Trait Implementations§
impl Freeze for IfStatement
impl RefUnwindSafe for IfStatement
impl Send for IfStatement
impl Sync for IfStatement
impl Unpin for IfStatement
impl UnwindSafe for IfStatement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more