Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UML Trait Diagram Example

Description

This repository is for educational purpose. It is a simple Rust program that implements geometric shapes in traits programming. The following image represents a trait diagram for this example.

My Image

Execution

To execute this program, we simply run:

Cargo run 

The Output

This program will simply print the following output:

rect has width 2, height3, and area6
square has length5 and area 25

About

This repository explains how to design a Trait diagram for trait program, developed in Rust programming language

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages