pub struct VariableRef<VarId, ScopeId> {
pub path: ScopeRef<ScopeId>,
pub name: String,
pub id: VarId,
}
Fields§
§path: ScopeRef<ScopeId>
Path in the scope hierarchy to where this variable resides
name: String
Name of the variable in its hierarchy
id: VarId
Backend specific numeric ID. Performance optimization.
Implementations§
Trait Implementations§
Source§impl<VarId, ScopeId> AsRef<VariableRef<VarId, ScopeId>> for VariableRef<VarId, ScopeId>
impl<VarId, ScopeId> AsRef<VariableRef<VarId, ScopeId>> for VariableRef<VarId, ScopeId>
Source§fn as_ref(&self) -> &VariableRef<VarId, ScopeId>
fn as_ref(&self) -> &VariableRef<VarId, ScopeId>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<VarId: Clone, ScopeId: Clone> Clone for VariableRef<VarId, ScopeId>
impl<VarId: Clone, ScopeId: Clone> Clone for VariableRef<VarId, ScopeId>
Source§fn clone(&self) -> VariableRef<VarId, ScopeId>
fn clone(&self) -> VariableRef<VarId, ScopeId>
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<'de, VarId, ScopeId> Deserialize<'de> for VariableRef<VarId, ScopeId>where
VarId: Deserialize<'de>,
ScopeId: Deserialize<'de>,
impl<'de, VarId, ScopeId> Deserialize<'de> for VariableRef<VarId, ScopeId>where
VarId: Deserialize<'de>,
ScopeId: Deserialize<'de>,
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<VarId, ScopeId> FromBytesOwned for VariableRef<VarId, ScopeId>where
Json<Self>: FromBytesOwned,
impl<VarId, ScopeId> FromBytesOwned for VariableRef<VarId, ScopeId>where
Json<Self>: FromBytesOwned,
Source§impl<VarId, ScopeId> Hash for VariableRef<VarId, ScopeId>
impl<VarId, ScopeId> Hash for VariableRef<VarId, ScopeId>
Source§impl<VarId, ScopeId> PartialEq for VariableRef<VarId, ScopeId>
impl<VarId, ScopeId> PartialEq for VariableRef<VarId, ScopeId>
Source§impl<VarId, ScopeId> Serialize for VariableRef<VarId, ScopeId>
impl<VarId, ScopeId> Serialize for VariableRef<VarId, ScopeId>
Source§impl<'__to_bytes_a, VarId, ScopeId> ToBytes<'__to_bytes_a> for VariableRef<VarId, ScopeId>
impl<'__to_bytes_a, VarId, ScopeId> ToBytes<'__to_bytes_a> for VariableRef<VarId, ScopeId>
impl<VarId: Eq, ScopeId: Eq> Eq for VariableRef<VarId, ScopeId>
Auto Trait Implementations§
impl<VarId, ScopeId> Freeze for VariableRef<VarId, ScopeId>
impl<VarId, ScopeId> RefUnwindSafe for VariableRef<VarId, ScopeId>where
VarId: RefUnwindSafe,
ScopeId: RefUnwindSafe,
impl<VarId, ScopeId> Send for VariableRef<VarId, ScopeId>
impl<VarId, ScopeId> Sync for VariableRef<VarId, ScopeId>
impl<VarId, ScopeId> Unpin for VariableRef<VarId, ScopeId>
impl<VarId, ScopeId> UnwindSafe for VariableRef<VarId, ScopeId>where
VarId: UnwindSafe,
ScopeId: UnwindSafe,
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