Enum fetish_lib::term_reference::TermReference [−][src]
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 TermPointer
s to the relevant
crate::term::PartiallyAppliedTerm
s in an InterpreterState
.
Variants
FuncRef(TermPointer)
Expand description
A TermPointer
reference to a function
Expand description
A vector of the given TypeId
with the given elements.
Implementations
impl TermReference
[src]
impl TermReference
[src]pub fn get_type(&self) -> TypeId
[src]
pub fn get_type(&self) -> TypeId
[src]Gets the TypeId
of the term for this TermReference
.
Trait Implementations
impl Clone for TermReference
[src]
impl Clone for TermReference
[src]fn clone(&self) -> TermReference
[src]
fn clone(&self) -> TermReference
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl DisplayableWithState for TermReference
[src]
impl DisplayableWithState for TermReference
[src]fn display(&self, state: &InterpreterState<'_>) -> String
[src]
impl Hash for TermReference
[src]
impl Hash for TermReference
[src]impl PartialEq<TermReference> for TermReference
[src]
impl PartialEq<TermReference> for TermReference
[src]fn eq(&self, other: &TermReference) -> bool
[src]
fn eq(&self, other: &TermReference) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &TermReference) -> bool
[src]
fn ne(&self, other: &TermReference) -> bool
[src]This method tests for !=
.
impl Eq for TermReference
[src]
impl StructuralEq for TermReference
[src]
impl StructuralPartialEq for TermReference
[src]
Auto Trait Implementations
impl RefUnwindSafe for TermReference
impl Send for TermReference
impl Sync for TermReference
impl Unpin for TermReference
impl UnwindSafe for TermReference
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,