pub struct FieldRef<VarId, ScopeId> {
pub root: VariableRef<VarId, ScopeId>,
pub field: Vec<String>,
}
Expand description
A reference to a field of a larger variable, such as a field in a struct. The fields are the recursive path to the fields inside the (translated) root
Fields§
§root: VariableRef<VarId, ScopeId>
§field: Vec<String>
Trait Implementations§
Source§impl<'de, VarId, ScopeId> Deserialize<'de> for FieldRef<VarId, ScopeId>where
VarId: Deserialize<'de>,
ScopeId: Deserialize<'de>,
impl<'de, VarId, ScopeId> Deserialize<'de> for FieldRef<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
impl<VarId: Eq, ScopeId: Eq> Eq for FieldRef<VarId, ScopeId>
impl<VarId, ScopeId> StructuralPartialEq for FieldRef<VarId, ScopeId>
Auto Trait Implementations§
impl<VarId, ScopeId> Freeze for FieldRef<VarId, ScopeId>
impl<VarId, ScopeId> RefUnwindSafe for FieldRef<VarId, ScopeId>where
VarId: RefUnwindSafe,
ScopeId: RefUnwindSafe,
impl<VarId, ScopeId> Send for FieldRef<VarId, ScopeId>
impl<VarId, ScopeId> Sync for FieldRef<VarId, ScopeId>
impl<VarId, ScopeId> Unpin for FieldRef<VarId, ScopeId>
impl<VarId, ScopeId> UnwindSafe for FieldRef<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