pub struct Variable { /* private fields */ }
Implementations§
Source§impl Variable
impl Variable
pub fn new<S: Into<String>>( name: S, rl_type: Reference<TypeId>, position: Option<Position>, ) -> Self
pub fn name(&self) -> &str
pub fn rl_type(&self) -> &Reference<TypeId>
pub fn set_type(&mut self, id: TypeId)
pub fn position(&self) -> Option<Position>
pub fn resolve_type( &mut self, map: &HashMap<String, TypeId>, ) -> Result<(), RlError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin 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