pub enum ElementRef<'a, Ty> {
Variable {
ty: &'a Ty,
var: &'a u16,
},
Term {
ty: &'a Ty,
id: &'a u32,
args: &'a [PackedPtr],
},
Conv {
e1: &'a PackedPtr,
e2: &'a PackedPtr,
},
}Variants§
Implementations§
Source§impl<'a, Ty: Var> ElementRef<'a, Ty>
impl<'a, Ty: Var> ElementRef<'a, Ty>
pub fn to_display<'b, S: Store<Var = Ty>>( &'b self, store: &'b S, ) -> DisplayElement<'a, 'b, Ty, S>
Trait Implementations§
Source§impl<'a, Ty: Debug> Debug for ElementRef<'a, Ty>
impl<'a, Ty: Debug> Debug for ElementRef<'a, Ty>
Source§impl<'a, Ty> TryFrom<ElementRef<'a, Ty>> for Conv
impl<'a, Ty> TryFrom<ElementRef<'a, Ty>> for Conv
Source§impl<'a, Ty> TryFrom<ElementRef<'a, Ty>> for Term<'a, Ty>
impl<'a, Ty> TryFrom<ElementRef<'a, Ty>> for Term<'a, Ty>
Auto Trait Implementations§
impl<'a, Ty> Freeze for ElementRef<'a, Ty>
impl<'a, Ty> RefUnwindSafe for ElementRef<'a, Ty>where
Ty: RefUnwindSafe,
impl<'a, Ty> Send for ElementRef<'a, Ty>where
Ty: Sync,
impl<'a, Ty> Sync for ElementRef<'a, Ty>where
Ty: Sync,
impl<'a, Ty> Unpin for ElementRef<'a, Ty>
impl<'a, Ty> UnwindSafe for ElementRef<'a, Ty>where
Ty: RefUnwindSafe,
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