pub trait Budget {
// Required methods
fn deposit(&self);
fn withdraw(&self) -> bool;
}Expand description
For more info about Budget, please see the module-level documentation.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".