pub enum Loc<A> {
Id(A),
Field(Box<Loc<A>>, A),
Addr(Box<Loc<A>>),
}
Expand description
A Loc is a location that can be assigned to.
Variants§
Implementations§
Trait Implementations§
Source§impl<'de, A> Deserialize<'de> for Loc<A>where
A: Deserialize<'de>,
impl<'de, A> Deserialize<'de> for Loc<A>where
A: 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<A: Eq> Eq for Loc<A>
impl<A> StructuralPartialEq for Loc<A>
Auto Trait Implementations§
impl<A> Freeze for Loc<A>where
A: Freeze,
impl<A> RefUnwindSafe for Loc<A>where
A: RefUnwindSafe,
impl<A> Send for Loc<A>where
A: Send,
impl<A> Sync for Loc<A>where
A: Sync,
impl<A> Unpin for Loc<A>where
A: Unpin,
impl<A> UnwindSafe for Loc<A>where
A: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.