pub struct VariableInfo {
pub name: String,
pub kind: VariableKind,
pub span: Span,
pub declared_type: Option<Type>,
}Expand description
Variable binding: local, global, or parameter.
Fields§
§name: String§kind: VariableKind§span: Span§declared_type: Option<Type>Declared type from annotation (e.g. integer x = 0), if any.
Trait Implementations§
Source§impl Clone for VariableInfo
impl Clone for VariableInfo
Source§fn clone(&self) -> VariableInfo
fn clone(&self) -> VariableInfo
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 moreAuto Trait Implementations§
impl Freeze for VariableInfo
impl RefUnwindSafe for VariableInfo
impl Send for VariableInfo
impl Sync for VariableInfo
impl Unpin for VariableInfo
impl UnsafeUnpin for VariableInfo
impl UnwindSafe for VariableInfo
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