manabrew-engine 0.6.0

Magic: The Gathering rules engine — a Rust port of Forge
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Interface for keywords that have an associated cost.
//!
//! Ported from Java's `KeywordWithCostInterface.java` in `forge/game/keyword/`.

/// Trait for keywords that have an associated cost.
/// Mirrors Java's `KeywordWithCostInterface`.
pub trait KeywordWithCostTrait {
    /// Get the cost string.
    fn get_cost_string(&self) -> &str;

    /// Get the title without the cost portion.
    fn get_title_without_cost(&self) -> String;
}