Skip to content

mandober/rust-maybe-type

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Maybe

  • lang: Rust
  • date: 2017-12-11
  • type: exercise
  • desc: Option's doppelganger, the Maybe type (just for exercise)

Implementation of the Maybe type, exactly the same thing as the Option, purely as get-intimate-with-impl-details sort of exercise. Heavily commented.

pub enum Maybe<T> {
    Just(T),
    Nothing
}

Source code of Option in libcore.

About

Rust: Option's doppelganger, the Maybe type

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages