#[repr(C)]pub struct NestedVariable {
pub dollar: Span,
pub variable: Box<Variable>,
}Expand description
Represents a nested variable.
A nested variable is a variable that is nested inside another variable, commonly known as a variable variable.
§Examples
$$foo
$${foo}
$$$fooFields§
§dollar: Span§variable: Box<Variable>Trait Implementations§
Source§impl Clone for NestedVariable
impl Clone for NestedVariable
Source§fn clone(&self) -> NestedVariable
fn clone(&self) -> NestedVariable
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 NestedVariable
impl Debug for NestedVariable
Source§impl<'de> Deserialize<'de> for NestedVariable
impl<'de> Deserialize<'de> for NestedVariable
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 NestedVariable
impl HasSpan for NestedVariable
Source§impl Hash for NestedVariable
impl Hash for NestedVariable
Source§impl Ord for NestedVariable
impl Ord for NestedVariable
Source§fn cmp(&self, other: &NestedVariable) -> Ordering
fn cmp(&self, other: &NestedVariable) -> 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 NestedVariable
impl PartialEq for NestedVariable
Source§impl PartialOrd for NestedVariable
impl PartialOrd for NestedVariable
Source§impl Serialize for NestedVariable
impl Serialize for NestedVariable
impl Eq for NestedVariable
impl StructuralPartialEq for NestedVariable
Auto Trait Implementations§
impl Freeze for NestedVariable
impl RefUnwindSafe for NestedVariable
impl Send for NestedVariable
impl Sync for NestedVariable
impl Unpin for NestedVariable
impl UnwindSafe for NestedVariable
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