pub struct IfStatement { /* private fields */ }Expand description
An if statement with an optional else clause.
Implementations§
Source§impl IfStatement
Success
impl IfStatement
Success
Sourcepub fn success_statements(&self) -> &Source
pub fn success_statements(&self) -> &Source
Gets the success statements.
Sourcepub fn set_success_statements<S>(&mut self, success: S)
pub fn set_success_statements<S>(&mut self, success: S)
Sets the success statements.
Sourcepub fn with_success_statements<S>(self, success: S) -> Self
pub fn with_success_statements<S>(self, success: S) -> Self
Sets the success statements.
Source§impl IfStatement
Else
impl IfStatement
Else
Sourcepub fn else_statements(&self) -> &Source
pub fn else_statements(&self) -> &Source
Gets the else statements.
Sourcepub fn set_else_statements<S>(&mut self, else_statements: S)
pub fn set_else_statements<S>(&mut self, else_statements: S)
Sets the else_statements.
Sourcepub fn with_else_statements<S>(self, else_statements: S) -> Self
pub fn with_else_statements<S>(self, else_statements: S) -> Self
Sets the else_statements.
Trait Implementations§
Source§impl From<&str> for IfStatement
impl From<&str> for IfStatement
Source§impl<E: 'static + Expression> From<E> for IfStatement
impl<E: 'static + Expression> From<E> for IfStatement
Source§impl From<String> for IfStatement
impl From<String> for IfStatement
Source§impl Statement for IfStatement
impl Statement for IfStatement
Source§fn write(&self, b: &mut CodeBuffer, level: usize)
fn write(&self, b: &mut CodeBuffer, level: usize)
Writes the code to the buffer
b at the indent level.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