pub enum VarDeclKind {
Var,
Let,
Const,
Using,
AwaitUsing,
}Expand description
var/let/const.
Variants§
Var
var
Let
let
Const
const
Using
using
A lexical binding whose value is disposed at the end of the enclosing block. The await form is a separate variant so that the await-ness travels with the declaration the way the other keywords do.
AwaitUsing
await using
Implementations§
Source§impl VarDeclKind
impl VarDeclKind
Sourcepub fn is_lexical(self) -> bool
pub fn is_lexical(self) -> bool
Whether the declaration is block-scoped.
Sourcepub fn is_using(self) -> bool
pub fn is_using(self) -> bool
Whether this declaration disposes its binding at the end of the block.
Sourcepub fn is_await_using(self) -> bool
pub fn is_await_using(self) -> bool
Whether the disposal is awaited.
Trait Implementations§
Source§impl Clone for VarDeclKind
impl Clone for VarDeclKind
impl Copy for VarDeclKind
Source§impl Debug for VarDeclKind
impl Debug for VarDeclKind
impl Eq for VarDeclKind
Source§impl PartialEq for VarDeclKind
impl PartialEq for VarDeclKind
impl StructuralPartialEq for VarDeclKind
Auto Trait Implementations§
impl Forget for VarDeclKind
impl Freeze for VarDeclKind
impl Move for VarDeclKind
impl RefUnwindSafe for VarDeclKind
impl Send for VarDeclKind
impl Sync for VarDeclKind
impl Unpin for VarDeclKind
impl UnsafeUnpin for VarDeclKind
impl UnwindSafe for VarDeclKind
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