pub enum CSharpType {
Show 17 variants
Int,
Long,
Double,
Float,
Bool,
String,
Void,
Object,
List(Box<CSharpType>),
Dict(Box<CSharpType>, Box<CSharpType>),
Tuple(Vec<CSharpType>),
Custom(String),
Nullable(Box<CSharpType>),
Task(Box<CSharpType>),
IEnumerable(Box<CSharpType>),
Func(Vec<CSharpType>, Box<CSharpType>),
Action(Vec<CSharpType>),
}Expand description
C# type representation for type-directed code generation.
Variants§
Int
int — 32-bit signed integer
Long
long — 64-bit signed integer (used for Nat)
Double
double — 64-bit IEEE 754 float
Float
float — 32-bit IEEE 754 float
Bool
bool
String
string
Void
void
Object
object
List(Box<CSharpType>)
List<T>
Dict(Box<CSharpType>, Box<CSharpType>)
Dictionary<K, V>
Tuple(Vec<CSharpType>)
(T0, T1, ...) — value tuple
Custom(String)
Named type (class, record, interface, enum, …)
Nullable(Box<CSharpType>)
T? — nullable reference / value type
Task(Box<CSharpType>)
Task<T> — async task
IEnumerable(Box<CSharpType>)
IEnumerable<T>
Func(Vec<CSharpType>, Box<CSharpType>)
Func<T0, T1, ..., R> — delegate type
Action(Vec<CSharpType>)
Action<T0, T1, ...> — void delegate
Trait Implementations§
Source§impl Clone for CSharpType
impl Clone for CSharpType
Source§fn clone(&self) -> CSharpType
fn clone(&self) -> CSharpType
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 CSharpType
impl Debug for CSharpType
Source§impl Display for CSharpType
impl Display for CSharpType
Source§impl Hash for CSharpType
impl Hash for CSharpType
Source§impl PartialEq for CSharpType
impl PartialEq for CSharpType
impl Eq for CSharpType
impl StructuralPartialEq for CSharpType
Auto Trait Implementations§
impl Freeze for CSharpType
impl RefUnwindSafe for CSharpType
impl Send for CSharpType
impl Sync for CSharpType
impl Unpin for CSharpType
impl UnsafeUnpin for CSharpType
impl UnwindSafe for CSharpType
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