pub struct VarRefNode {
pub prefix: String,
pub local_name: String,
pub slot: Option<u32>,
pub span: SourceSpan,
}Expand description
Variable reference ($prefix:localname or $localname).
Fields§
§prefix: StringNamespace prefix (empty string if none).
local_name: StringLocal name.
slot: Option<u32>Resolved variable slot (set during binding phase).
span: SourceSpanSource location.
Implementations§
Source§impl VarRefNode
impl VarRefNode
pub fn new(prefix: String, local_name: String, span: SourceSpan) -> Self
Trait Implementations§
Source§impl Clone for VarRefNode
impl Clone for VarRefNode
Source§fn clone(&self) -> VarRefNode
fn clone(&self) -> VarRefNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VarRefNode
impl RefUnwindSafe for VarRefNode
impl Send for VarRefNode
impl Sync for VarRefNode
impl Unpin for VarRefNode
impl UnsafeUnpin for VarRefNode
impl UnwindSafe for VarRefNode
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