pub struct WhileStatement {
pub while_block: ConditionalStatementBlock,
}Expand description
A WHILE statement.
Example:
WHILE @@FETCH_STATUS = 0
BEGIN
FETCH NEXT FROM c1 INTO @var1, @var2;
ENDFields§
§while_block: ConditionalStatementBlockBlock executed while the condition holds.
Trait Implementations§
Source§impl Clone for WhileStatement
impl Clone for WhileStatement
Source§fn clone(&self) -> WhileStatement
fn clone(&self) -> WhileStatement
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 more
Source§impl Debug for WhileStatement
impl Debug for WhileStatement
Source§impl<'de> Deserialize<'de> for WhileStatement
impl<'de> Deserialize<'de> for WhileStatement
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>,
where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for WhileStatement
impl Display for WhileStatement
Source§impl From<WhileStatement> for Statement
impl From<WhileStatement> for Statement
Source§fn from(w: WhileStatement) -> Self
fn from(w: WhileStatement) -> Self
Converts to this type from the input type.
Source§impl Hash for WhileStatement
impl Hash for WhileStatement
Source§impl Ord for WhileStatement
impl Ord for WhileStatement
Source§fn cmp(&self, other: &WhileStatement) -> Ordering
fn cmp(&self, other: &WhileStatement) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
where Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WhileStatement
impl PartialEq for WhileStatement
Source§impl PartialOrd for WhileStatement
impl PartialOrd for WhileStatement
Source§fn partial_cmp(&self, other: &WhileStatement) -> Option<Ordering>
fn partial_cmp(&self, other: &WhileStatement) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§fn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
Tests less than or equal to (for self and other) and is used by the
<= operator. Read more
Source§impl Serialize for WhileStatement
impl Serialize for WhileStatement
Source§impl Spanned for WhileStatement
impl Spanned for WhileStatement
Source§impl Visit for WhileStatement
impl Visit for WhileStatement
Source§impl VisitMut for WhileStatement
impl VisitMut for WhileStatement
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided VisitorMut. Read more
impl Eq for WhileStatement
impl StructuralPartialEq for WhileStatement
Auto Trait Implementations§
impl Freeze for WhileStatement
impl RefUnwindSafe for WhileStatement
impl Send for WhileStatement
impl Sync for WhileStatement
impl Unpin for WhileStatement
impl UnwindSafe for WhileStatement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
where 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,
where T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
where T: for<'de> Deserialize<'de>,