Enum kodept_ast::VariableKind
source · pub enum VariableKind {
Immutable,
Mutable,
}Variants§
Implementations§
source§impl VariableKind
impl VariableKind
pub fn is_immutable(&self) -> bool
pub fn is_mutable(&self) -> bool
Trait Implementations§
source§impl Clone for VariableKind
impl Clone for VariableKind
source§fn clone(&self) -> VariableKind
fn clone(&self) -> VariableKind
Returns a copy 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 VariableKind
impl Debug for VariableKind
source§impl PartialEq for VariableKind
impl PartialEq for VariableKind
source§fn eq(&self, other: &VariableKind) -> bool
fn eq(&self, other: &VariableKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for VariableKind
Auto Trait Implementations§
impl RefUnwindSafe for VariableKind
impl Send for VariableKind
impl Sync for VariableKind
impl Unpin for VariableKind
impl UnwindSafe for VariableKind
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