Skip to content

Rust "Traits" Workshop

Rust "Traits" Workshop

Details

https://secure.meetupstatic.com/photos/event/1/b/8/7/600_461347047.jpeg

Rust "Traits" Workshop

Schärli, Nathanael et' al write, Traits are an object-oriented programming language construct that allow groups of methods to be named and reusedin arbitrary places in an inheritance hierarchy.

Classes can use methods from traits as well as defining their own methods and instance variables.

Traits thus enable a new style of programming, in which traits rather than classes are the primary unit of reuse.

This workshop focuses on 'Traits' extensively. The topics we cover are,

• Polymorphism Review

• Generics

• Traits Overview

• Rules for implementing traits

• multiple trait bounds

• where clause

• default methods

• inheritance

• deriving

• Trait Objects

• Working with multiple error types

• Standard library traits used for error handling

Research Papers referenced in the workshop are

Cardelli, Luca and Wegner, Peter
On Understanding Types, Data Abstraction and Polymorphism
ACM Computing Surveys, Vol 17, No 4, Dec 1985

Scanned PDF available at
http://www.csc.lsu.edu/~gb/csc7101/Handouts/p471-cardelli.pdf

Nathanael Schärli et' al
Traits, Composable Units of Behaviour
European Conference on Object-Oriented Programming (ECOOP) 2003

PDF available at

http://scg.unibe.ch/archive/papers/Scha03aTraits.pdf

In this workshop, we write programs that focus on the semantics and model of traits implemented in Rust programming language.

This is a FOSS "free of charge" event !

Photo of Rust India group
Rust India
See more events
91springboard Koramangala (National Games Village),
2, 3rd Floor, Padmavati Complex, Nanjappa Reddy Layout, Koramangala, Bangalore - 560095 · Bangalore