pub struct Variable {
pub name: String,
pub data_type_declaration: DataTypeDeclaration,
pub initializer: Option<AstNode>,
pub address: Option<AstNode>,
pub location: SourceLocation,
}Fields§
§name: String§data_type_declaration: DataTypeDeclaration§initializer: Option<AstNode>§address: Option<AstNode>§location: SourceLocationImplementations§
Source§impl Variable
impl Variable
pub fn new( name: impl Into<String>, data_type_declaration: DataTypeDeclaration, location: SourceLocation, ) -> Variable
pub fn replace_data_type_with_reference_to( &mut self, type_name: String, ) -> DataTypeDeclaration
pub fn get_name(&self) -> &str
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Variablewhere
'de: 'static,
impl<'de> Deserialize<'de> for Variablewhere
'de: 'static,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnsafeUnpin for Variable
impl UnwindSafe for Variable
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