pub struct WhileStatement {
pub label: Option<Ident>,
pub while_block: ConditionalStatementBlock,
}Expand description
A WHILE statement.
Example:
WHILE @@FETCH_STATUS = 0
BEGIN
FETCH NEXT FROM c1 INTO @var1, @var2;
ENDFields§
§label: Option<Ident>§while_block: ConditionalStatementBlockTrait 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 moreSource§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>,
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,
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§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
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
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,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more