This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHVMj2JxwEJc8zpHLSD3T1memwQ/tkCJk5Rf2zseCvpv soares@soares-desktop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is an example of how the Scala cake pattern can be used in CGP, | |
// following the example at https://www.baeldung.com/scala/cake-pattern | |
pub mod traits { | |
use std::collections::BTreeMap; | |
use anyhow::Error; | |
use cgp::prelude::*; | |
// For simplicity of the example, we use `dyn` trait to represent test cases |
OlderNewer