#[repr(C)]pub struct DirectVariable {
pub span: Span,
pub name: StringIdentifier,
}Expand description
Represents a direct variable.
A direct variable is a variable that is directly referenced by its name.
§Examples
$fooFields§
§span: Span§name: StringIdentifierTrait Implementations§
Source§impl Clone for DirectVariable
impl Clone for DirectVariable
Source§fn clone(&self) -> DirectVariable
fn clone(&self) -> DirectVariable
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 moreSource§impl Debug for DirectVariable
impl Debug for DirectVariable
Source§impl<'de> Deserialize<'de> for DirectVariable
impl<'de> Deserialize<'de> for DirectVariable
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
Source§impl HasSpan for DirectVariable
impl HasSpan for DirectVariable
Source§impl Hash for DirectVariable
impl Hash for DirectVariable
Source§impl Ord for DirectVariable
impl Ord for DirectVariable
Source§fn cmp(&self, other: &DirectVariable) -> Ordering
fn cmp(&self, other: &DirectVariable) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DirectVariable
impl PartialEq for DirectVariable
Source§impl PartialOrd for DirectVariable
impl PartialOrd for DirectVariable
Source§impl Serialize for DirectVariable
impl Serialize for DirectVariable
impl Eq for DirectVariable
impl StructuralPartialEq for DirectVariable
Auto Trait Implementations§
impl Freeze for DirectVariable
impl RefUnwindSafe for DirectVariable
impl Send for DirectVariable
impl Sync for DirectVariable
impl Unpin for DirectVariable
impl UnwindSafe for DirectVariable
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