pub struct VariableRef<'a> {
pub name: Cow<'a, str>,
}Expand description
A variable reference, by name (without the $ sigil).
Fields§
§name: Cow<'a, str>The name, as written, without bidi marks.
Implementations§
Source§impl VariableRef<'_>
impl VariableRef<'_>
Sourcepub fn into_owned(self) -> VariableRef<'static>
pub fn into_owned(self) -> VariableRef<'static>
The same reference, owned.
Trait Implementations§
Source§impl<'a> Clone for VariableRef<'a>
impl<'a> Clone for VariableRef<'a>
Source§impl<'a> Debug for VariableRef<'a>
impl<'a> Debug for VariableRef<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for VariableRef<'a>
Available on crate feature serde only.
impl<'de: 'a, 'a> Deserialize<'de> for VariableRef<'a>
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl<'a> Eq for VariableRef<'a>
Source§impl<'a> Hash for VariableRef<'a>
impl<'a> Hash for VariableRef<'a>
Source§impl<'a> PartialEq for VariableRef<'a>
impl<'a> PartialEq for VariableRef<'a>
Source§impl Serialize for VariableRef<'_>
Available on crate feature serde only.
impl Serialize for VariableRef<'_>
Available on crate feature
serde only.impl<'a> StructuralPartialEq for VariableRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for VariableRef<'a>
impl<'a> RefUnwindSafe for VariableRef<'a>
impl<'a> Send for VariableRef<'a>
impl<'a> Sync for VariableRef<'a>
impl<'a> Unpin for VariableRef<'a>
impl<'a> UnsafeUnpin for VariableRef<'a>
impl<'a> UnwindSafe for VariableRef<'a>
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