pub enum VarKind {
Var,
Let,
Const,
Using,
AwaitUsing,
}Variants§
Var
Let
Const
Using
using x = expr;(Explicit Resource Management)。囲むブロック実行終了時に
x[Symbol.dispose]() を宣言の逆順で呼ぶ。
AwaitUsing
await using x = expr;。x[Symbol.asyncDispose]() の戻り値を await する。
Trait Implementations§
impl StructuralPartialEq for VarKind
Auto Trait Implementations§
impl Freeze for VarKind
impl RefUnwindSafe for VarKind
impl Send for VarKind
impl Sync for VarKind
impl Unpin for VarKind
impl UnsafeUnpin for VarKind
impl UnwindSafe for VarKind
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