pub enum JuliaType {
Show 31 variants
Int8,
Int16,
Int32,
Int64,
Int128,
UInt8,
UInt16,
UInt32,
UInt64,
UInt128,
Float32,
Float64,
Bool,
String,
Char,
Nothing,
Any,
Vector(Box<JuliaType>),
Matrix(Box<JuliaType>),
Array(Box<JuliaType>, u32),
Tuple(Vec<JuliaType>),
NamedTuple(Vec<(String, JuliaType)>),
Union(Vec<JuliaType>),
Abstract(String),
Parametric(String, Vec<JuliaType>),
TypeVar(String),
Function,
Dict(Box<JuliaType>, Box<JuliaType>),
Set(Box<JuliaType>),
Ref(Box<JuliaType>),
Named(String),
}Expand description
Julia type representation.
Variants§
Int8
Int8
Int16
Int16
Int32
Int32
Int64
Int64
Int128
Int128
UInt8
UInt8
UInt16
UInt16
UInt32
UInt32
UInt64
UInt64
UInt128
UInt128
Float32
Float32
Float64
Float64
Bool
Bool
String
String
Char
Char
Nothing
Nothing
Any
Any
Vector(Box<JuliaType>)
Vector{T} — 1-D array
Matrix(Box<JuliaType>)
Matrix{T} — 2-D array
Array(Box<JuliaType>, u32)
Array{T, N} — N-dimensional array
Tuple(Vec<JuliaType>)
Tuple{T1, T2, ...}
NamedTuple(Vec<(String, JuliaType)>)
NamedTuple{names, types}
Union(Vec<JuliaType>)
Union{T1, T2, ...}
Abstract(String)
Abstract type: AbstractType
Parametric(String, Vec<JuliaType>)
Parametric type: Type{T1, T2}
TypeVar(String)
Type variable: T (used in parametric definitions)
Function
Function type (callable): Function
Dict(Box<JuliaType>, Box<JuliaType>)
Dict{K, V}
Set(Box<JuliaType>)
Set{T}
Ref(Box<JuliaType>)
Ref{T} — mutable reference
Named(String)
Named (user-defined) type: MyStruct
Trait Implementations§
impl StructuralPartialEq for JuliaType
Auto Trait Implementations§
impl Freeze for JuliaType
impl RefUnwindSafe for JuliaType
impl Send for JuliaType
impl Sync for JuliaType
impl Unpin for JuliaType
impl UnsafeUnpin for JuliaType
impl UnwindSafe for JuliaType
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