pub enum ComplexType {
Simple(Type),
Complex(Tuple<ComplexType>),
}Expand description
The type of any espy value.
ComplexType is usually the only form of Type that the espy
interpreter is concerned with, but it cannot be represented within espy
itself (tuples of types represent ComplexTypes, instead).
Variants§
Simple(Type)
Complex(Tuple<ComplexType>)
Implementations§
Trait Implementations§
Source§impl Clone for ComplexType
impl Clone for ComplexType
Source§fn clone(&self) -> ComplexType
fn clone(&self) -> ComplexType
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 Debug for ComplexType
impl Debug for ComplexType
Source§impl From<ComplexType> for Value<'_>
impl From<ComplexType> for Value<'_>
Source§fn from(value: ComplexType) -> Self
fn from(value: ComplexType) -> Self
Converts to this type from the input type.
Source§impl From<Tuple<ComplexType>> for ComplexType
impl From<Tuple<ComplexType>> for ComplexType
Source§fn from(value: Tuple<ComplexType>) -> Self
fn from(value: Tuple<ComplexType>) -> Self
Converts to this type from the input type.
Source§impl From<Type> for ComplexType
impl From<Type> for ComplexType
Source§impl PartialEq for ComplexType
impl PartialEq for ComplexType
Source§impl<'host> TryFrom<Value<'host>> for ComplexType
impl<'host> TryFrom<Value<'host>> for ComplexType
impl Eq for ComplexType
impl StructuralPartialEq for ComplexType
Auto Trait Implementations§
impl Freeze for ComplexType
impl RefUnwindSafe for ComplexType
impl !Send for ComplexType
impl !Sync for ComplexType
impl Unpin for ComplexType
impl UnwindSafe for ComplexType
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