MCPcopy Create free account
hub / github.com/derekbanas/Rust-Tutorial / is_weekend

Method is_weekend

main.rs:476–481  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

474 // Define function for Day enum
475 impl Day {
476 fn is_weekend(&self) -> bool {
477 match self {
478 Day::Saturday | Day::Sunday => true,
479 _ => false
480 }
481 }
482 }
483
484 // Use enum to store todays day

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected