<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://programming.123web.uk/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dylan</id>
	<title>Programming Wiki - User contributions [en-gb]</title>
	<link rel="self" type="application/atom+xml" href="https://programming.123web.uk/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dylan"/>
	<link rel="alternate" type="text/html" href="https://programming.123web.uk/index.php/Special:Contributions/Dylan"/>
	<updated>2026-04-19T15:31:29Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://programming.123web.uk/index.php?title=Rust_declare_variable&amp;diff=9</id>
		<title>Rust declare variable</title>
		<link rel="alternate" type="text/html" href="https://programming.123web.uk/index.php?title=Rust_declare_variable&amp;diff=9"/>
		<updated>2025-08-07T15:24:57Z</updated>

		<summary type="html">&lt;p&gt;Dylan: create Rust declare variable&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Declaring a variable ==&lt;br /&gt;
The syntax for declaring variables in Rust is:&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
let VARIABLE_NAME: TYPE;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;The &amp;lt;code&amp;gt;VARIABLE_NAME&amp;lt;/code&amp;gt; should be set to any alpha-numerical string, and can also include underscores. See [[naming variables]] for a guide on how to name variables, and [[Rust identifier naming conventions]] for advice on common conventions.&lt;br /&gt;
&lt;br /&gt;
=== Example of declaring a variable ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
let name: String;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Declare and initialize together ==&lt;br /&gt;
You can also both create (declare) and initialize (set the value of) a variable in one line:&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
let VARIABLE_NAME: TYPE = VALUE;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;There is more info on initializing variables in Rust on the [[Rust initialize variable]] page.&lt;br /&gt;
&lt;br /&gt;
=== Example of declaring and initializing a variable ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
let town: &amp;amp;str = &amp;quot;Paris&amp;quot;;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Type inference ==&lt;br /&gt;
The Rust compiler is clever enough to &#039;&#039;infer&#039;&#039; the type of a variable based on the value we assign it.&lt;br /&gt;
&lt;br /&gt;
We still need to give it a value at some point, otherwise it&#039;s impossible for the compiler to know what type to give it.&lt;br /&gt;
&lt;br /&gt;
=== Example of type inference ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
let age = 21;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;In this example, the compiler will &#039;&#039;infer&#039;&#039; that the type of &amp;lt;code&amp;gt;age&amp;lt;/code&amp;gt; is an &amp;lt;code&amp;gt;i32&amp;lt;/code&amp;gt;, a signed 32-bit integer (number).&lt;/div&gt;</summary>
		<author><name>Dylan</name></author>
	</entry>
	<entry>
		<id>https://programming.123web.uk/index.php?title=Programming:General_disclaimer&amp;diff=7</id>
		<title>Programming:General disclaimer</title>
		<link rel="alternate" type="text/html" href="https://programming.123web.uk/index.php?title=Programming:General_disclaimer&amp;diff=7"/>
		<updated>2025-08-07T14:37:06Z</updated>

		<summary type="html">&lt;p&gt;Dylan: Redirected page to Programming:Copyrights&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Programming:Copyrights]]&lt;/div&gt;</summary>
		<author><name>Dylan</name></author>
	</entry>
	<entry>
		<id>https://programming.123web.uk/index.php?title=Programming:Copyrights&amp;diff=6</id>
		<title>Programming:Copyrights</title>
		<link rel="alternate" type="text/html" href="https://programming.123web.uk/index.php?title=Programming:Copyrights&amp;diff=6"/>
		<updated>2025-08-07T14:35:51Z</updated>

		<summary type="html">&lt;p&gt;Dylan: create Programming:Copyright&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All content on these pages are licensed under Creative Commons Zero. That means that all content is in the public domain.&lt;br /&gt;
&lt;br /&gt;
== Submitting copyrighted content ==&lt;br /&gt;
&lt;br /&gt;
You must not publish any content on this site containing content you do not own.&lt;br /&gt;
&lt;br /&gt;
You are legally responsible for any copyrighted content you submit, and we cannot take any legal responsibility for the user-generated content on our site.&lt;br /&gt;
&lt;br /&gt;
== Taking down copyrighted content ==&lt;br /&gt;
&lt;br /&gt;
This is a public wiki: if you find any copyrighted content, you can remove it yourself. Otherwise, please email dylan@123web.uk and I will remove it as soon as possible.&lt;/div&gt;</summary>
		<author><name>Dylan</name></author>
	</entry>
	<entry>
		<id>https://programming.123web.uk/index.php?title=Programming:About&amp;diff=5</id>
		<title>Programming:About</title>
		<link rel="alternate" type="text/html" href="https://programming.123web.uk/index.php?title=Programming:About&amp;diff=5"/>
		<updated>2025-08-07T14:26:47Z</updated>

		<summary type="html">&lt;p&gt;Dylan: create Programming:About&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome! This wiki is for anyone looking for information about programming language syntax, library documentation, computing algorithms or anything else related to programming!&lt;br /&gt;
&lt;br /&gt;
Please feel free to contribute if you feel you could add something.&lt;/div&gt;</summary>
		<author><name>Dylan</name></author>
	</entry>
	<entry>
		<id>https://programming.123web.uk/index.php?title=MediaWiki:Citizen-footer-tagline&amp;diff=4</id>
		<title>MediaWiki:Citizen-footer-tagline</title>
		<link rel="alternate" type="text/html" href="https://programming.123web.uk/index.php?title=MediaWiki:Citizen-footer-tagline&amp;diff=4"/>
		<updated>2025-08-07T14:23:39Z</updated>

		<summary type="html">&lt;p&gt;Dylan: create Citizen-footer-tagline&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Help support this wiki by &#039;&#039;&#039;contributing&#039;&#039;&#039; and &#039;&#039;&#039;making edits&#039;&#039;&#039;!&lt;/div&gt;</summary>
		<author><name>Dylan</name></author>
	</entry>
	<entry>
		<id>https://programming.123web.uk/index.php?title=MediaWiki:Citizen-footer-desc&amp;diff=3</id>
		<title>MediaWiki:Citizen-footer-desc</title>
		<link rel="alternate" type="text/html" href="https://programming.123web.uk/index.php?title=MediaWiki:Citizen-footer-desc&amp;diff=3"/>
		<updated>2025-08-07T14:22:35Z</updated>

		<summary type="html">&lt;p&gt;Dylan: create citizen-footer-desc&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The public wiki for everything programming-related.&lt;/div&gt;</summary>
		<author><name>Dylan</name></author>
	</entry>
	<entry>
		<id>https://programming.123web.uk/index.php?title=Programming:Privacy_policy&amp;diff=2</id>
		<title>Programming:Privacy policy</title>
		<link rel="alternate" type="text/html" href="https://programming.123web.uk/index.php?title=Programming:Privacy_policy&amp;diff=2"/>
		<updated>2025-08-07T14:20:20Z</updated>

		<summary type="html">&lt;p&gt;Dylan: create basic privacy policy&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;We do not collect any additional information other than the information collected by MediaWiki.&lt;br /&gt;
&lt;br /&gt;
== IP address sharing ==&lt;br /&gt;
&lt;br /&gt;
If you are not logged in, your IP address will be publicly available to view on the edit history of wikis.&lt;br /&gt;
&lt;br /&gt;
Users may also be able to find your IP from just your username.&lt;/div&gt;</summary>
		<author><name>Dylan</name></author>
	</entry>
</feed>