Skip to content

Latest commit

 

History

History

ownership

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Ownership

  • in rust ownership gets transfered in between functions if not passed as reference
  • use reference (&) wherever you want to ensure ownership
  • cannot add a mutable and immutable refernce at a time
  • scope of referenced variables are only valid till the point the variable is used