Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
rust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
orestis.malaspin
rust
Commits
a16d6253
There was a problem fetching the pipeline summary.
Commit
a16d6253
authored
6 years ago
by
orestis.malaspin
Browse files
Options
Downloads
Plain Diff
ajouts divers
parents
202b8686
0f1c1288
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+8
-6
8 additions, 6 deletions
Makefile
types_avances.md
+64
-0
64 additions, 0 deletions
types_avances.md
with
72 additions
and
6 deletions
Makefile
+
8
−
6
View file @
a16d6253
...
@@ -21,16 +21,18 @@ REVEALOPRIONS += -V width="1500" -V height="1500" -V margin=0 -V center=false
...
@@ -21,16 +21,18 @@ REVEALOPRIONS += -V width="1500" -V height="1500" -V margin=0 -V center=false
REVEALOPRIONS
+=
-V
include-after
=
"<script src="
js/playRust.js
"></script>
\
REVEALOPRIONS
+=
-V
include-after
=
"<script src="
js/playRust.js
"></script>
\
<script src="
js/remote-code.js
"></script>
\
<script src="
js/remote-code.js
"></script>
\
<script src="
js/remote-diagrams.js
"></script>
\
<script src="
js/remote-diagrams.js
"></script>
\
<script src="
js/em-artiste.js
"></script>"
<script src="
js/em-artiste.js
"></script>
\
# REVEALOPRIONS += -V header-includes="<link rel="stylesheet" href="reveal.js/lib/css/zenburn.css" >\
<script src="
js/em-artiste.js
"></script>
\
# <link rel="stylesheet" href="reveal.js/css/theme/simple.css" id="theme">\
<script src="
reveal.js/plugin/highlight/highlight.js
"></script>"
# <link rel="stylesheet" href="css/console.css" id="theme">\
REVEALOPRIONS
+=
-V
header-includes
=
"<link rel="
stylesheet
" href="
reveal.js/lib/css/zenburn.css
" >
\
# <script src="jquery/dist/jquery.min.js"></script>"
<link rel="
stylesheet
" href="
reveal.js/css/theme/simple.css
" id="
theme
">
\
<link rel="
stylesheet
" href="
css/console.css
" id="
theme
">
\
<script src="
jquery/dist/jquery.min.js
"></script>"
REVEALOPRIONS
+=
--section-divs
REVEALOPRIONS
+=
--section-divs
# REVEALOPRIONS += -V fontsize=tiny
# REVEALOPRIONS += -V fontsize=tiny
REVEALOPRIONS
+=
-V
slideNumber
=
true
REVEALOPRIONS
+=
-V
slideNumber
=
true
REVEALOPRIONS
+=
--slide-level
=
1
REVEALOPRIONS
+=
--slide-level
=
1
#
REVEALOPRIONS += --highlight-style espresso
REVEALOPRIONS
+=
--highlight-style
espresso
REVEALOPRIONS
+=
--self-contained
REVEALOPRIONS
+=
--self-contained
SVG
=
$(
wildcard figs/
*
.svg
)
SVG
=
$(
wildcard figs/
*
.svg
)
...
...
This diff is collapsed.
Click to expand it.
types_avances.md
0 → 100644
+
64
−
0
View file @
a16d6253
---
title
:
Cours de programmation séquentielle
subtitle
:
Types avancés
author
:
Orestis Malaspinas
<!-- date
:
25 avril 2018 -->
sansfont
:
Sans Serif
<!-- header-includes
:
<link rel="stylesheet" href="reveal.js/lib/css/zenburn.css" >
<link rel="stylesheet" href="reveal.js/css/theme/simple.css" id="theme">
<link rel="stylesheet" href="css/console.css" id="theme">
<script src="jquery/dist/jquery.min.js"></script> -->
<!-- <script src="reveal.js/lib/js/classList.js"></script> -->
<!-- <script src="reveal.js/plugin/zoom-js/zoom.js"></script> -->
<!-- <script src="reveal.js/plugin/highlight/highlight.js"></script> -->
<!-- <script src="js/remote-diagrams.js"></script> -->
<!-- <script src="reveal.js/plugin/notes/notes.js"></script> -->
<!-- include-after
:
<script src="js/playRust.js"></script>
<script src="js/remote-code.js"></script>
<script src="js/remote-diagrams.js"></script>
<script src="js/em-artiste.js"></script> -->
<!-- slide-numbers
:
true
-->
---
# $N$-uplets
## `Tuples`{.rust}
-
Un $n-$tuplet est une
*collection*
ordonnée de $n$ objets.
-
Permet de regrouper plusieurs valeurs avec différents types dans un type composé.
<pre><code data-trim="hljs rust" class="lang-rust">
fn main() {
let tuple: (f64, char, usize) = (1.0, 'c', 18usize); // type pas nécessaire
println!("Un tuple {:?}", tuple); // affichage Debug
let sans_type_tuple = (666, "abcdef"); // type inféré
println!("Un autre tuple {:?}", sans_type_tuple); // affichage Debug
}
</code></pre>
## Destructuration
# Vecteurs statiques
## Array{.rust}
# Vecteurs dynamiques
## Vec{.rust}
# Structures
## `Struct`{.rust}
-
Une structure est un type
# Types énumérés
## `Enum`{.rust}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment