pub enum TermReference {
FuncRef(TermPointer),
VecRef(TypeId, Array1<R32>),
}Expand description
A reference to an arbitrary term, which may belong to
a function Type or a vector Type.
Vectors are stored inline here, whereas functions
are stored as TermPointers to the relevant
crate::term::PartiallyAppliedTerms in an InterpreterState.
Variants§
FuncRef(TermPointer)
A TermPointer reference to a function
VecRef(TypeId, Array1<R32>)
A vector of the given TypeId with the given elements.
Implementations§
Source§impl TermReference
impl TermReference
Sourcepub fn get_type(&self) -> TypeId
pub fn get_type(&self) -> TypeId
Gets the TypeId of the term for this TermReference.
Trait Implementations§
Source§impl Clone for TermReference
impl Clone for TermReference
Source§fn clone(&self) -> TermReference
fn clone(&self) -> TermReference
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 DisplayableWithState for TermReference
impl DisplayableWithState for TermReference
fn display(&self, state: &InterpreterState<'_>) -> String
Source§impl Hash for TermReference
impl Hash for TermReference
Source§impl PartialEq for TermReference
impl PartialEq for TermReference
impl Eq for TermReference
impl StructuralPartialEq for TermReference
Auto Trait Implementations§
impl Freeze for TermReference
impl RefUnwindSafe for TermReference
impl Send for TermReference
impl Sync for TermReference
impl Unpin for TermReference
impl UnwindSafe for TermReference
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