pub enum ScalaType {
Show 20 variants
Int,
Long,
Double,
Float,
Boolean,
Char,
ScalaString,
Unit,
Null,
Nothing,
Any,
AnyRef,
AnyVal,
List(Box<ScalaType>),
Option(Box<ScalaType>),
Either(Box<ScalaType>, Box<ScalaType>),
Tuple(Vec<ScalaType>),
Function(Vec<ScalaType>, Box<ScalaType>),
Custom(String),
Generic(String, Vec<ScalaType>),
}Expand description
Scala type representation for type-directed code generation.
Variants§
Int
Int — 32-bit signed integer
Long
Long — 64-bit signed integer
Double
Double — 64-bit IEEE floating-point
Float
Float — 32-bit IEEE floating-point
Boolean
Boolean — boolean
Char
Char — Unicode character
ScalaString
String — UTF-16 string
Unit
Unit — unit type
Null
Null — null type (subtype of all AnyRef)
Nothing
Nothing — bottom type
Any
Any — top type
AnyRef
AnyRef — reference type root
AnyVal
AnyVal — value type root
List(Box<ScalaType>)
List[T]
Option(Box<ScalaType>)
Option[T]
Either(Box<ScalaType>, Box<ScalaType>)
Either[A, B]
Tuple(Vec<ScalaType>)
(A, B, ...) — tuple
Function(Vec<ScalaType>, Box<ScalaType>)
(A, B) => R — function type
Custom(String)
Named type: class, trait, object
Generic(String, Vec<ScalaType>)
Generic type application: Map[K, V], Future[T]
Trait Implementations§
impl Eq for ScalaType
impl StructuralPartialEq for ScalaType
Auto Trait Implementations§
impl Freeze for ScalaType
impl RefUnwindSafe for ScalaType
impl Send for ScalaType
impl Sync for ScalaType
impl Unpin for ScalaType
impl UnsafeUnpin for ScalaType
impl UnwindSafe for ScalaType
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