Enum ezno_checker::behavior::variables::VariableOrImport
source · pub enum VariableOrImport {
Variable {
mutability: VariableMutability,
declared_at: SpanWithSource,
context: ContextLocation,
},
MutableImport {
of: VariableId,
constant: bool,
import_specified_at: SpanWithSource,
},
ConstantImport {
to: Option<VariableId>,
import_specified_at: SpanWithSource,
},
}Expand description
A variable, that can be referenced. Can be a including class (prototypes) and functions
TODO constant variables with a fixed value
Variants§
Variable
Fields
§
mutability: VariableMutabilityWhether can be reassigned and what to
§
declared_at: SpanWithSourceLocation where variable is defined ALSO UNIQUELY IDENTIFIES THE VARIABLE as can be turned into a VariableId
§
context: ContextLocationMutableImport
ConstantImport
Trait Implementations§
source§impl Clone for VariableOrImport
impl Clone for VariableOrImport
source§fn clone(&self) -> VariableOrImport
fn clone(&self) -> VariableOrImport
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 moreAuto Trait Implementations§
impl RefUnwindSafe for VariableOrImport
impl Send for VariableOrImport
impl Sync for VariableOrImport
impl Unpin for VariableOrImport
impl UnwindSafe for VariableOrImport
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