Git Product home page Git Product logo

dotnet-rust-example's Introduction

EN

Ejemplo de interoperabilidad entre DotNet y Rust

Features

  • Entorno Nix para trabajar comodo

Requisitos

Para construir y desplegar este proyecto, necesitarás lo siguiente:

Aprende Rust

Contamos con recursos que pueden guiarte en tu proceso de aprendizaje de Rust

Cosas a tener en cuenta

Los tipos en la interoperabilidad son importantes, por eso revisa esta tabla de equivalentes

Important

Mas informacion en este capitulo del libro

La siguiente tabla enumera los tipos primitivos en Rust y su equivalente en C# y .NET:

Rust C# .NET
bool bool Boolean
char char Char
i8 sbyte SByte
i16 short Int16
i32 int Int32
i64 long Int64
i128 Int128
isize nint IntPtr
u8 byte Byte
u16 ushort UInt16
u32 uint UInt32
u64 ulong UInt64
u128 UInt128
usize nuint UIntPtr
f32 float Single
f64 double Double
decimal Decimal
() void Void o ValueTuple
object Object

Important

Mas informacion en este capitulo del libro

La comparación de textos es mostrada en la siguiente tabla:

Rust .NET
&mut str Span<char>
&str ReadOnlySpan<char>
Box<str> String
String String
String (mutable) StringBuilder

Important

Mas informacion en este capitulo del libro

La comparativa de algunos tipos de datos complejos se refleja en la siguiente tabla:

C# Rust
Array Array
List Vec
Tuple Tuple
Dictionary HashMap

Inspiraciones y proyectos similares

dotnet-rust-example's People

Contributors

sergioribera avatar

Stargazers

Haruka avatar Jerson Tapias avatar

Watchers

Sergio Alberto Meneses avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.