Re-exports§
pub use keyword_instance::Keyword;
Modules§
- amplify
- Amplify keyword implementation.
- companion
- Companion keyword implementation.
- compleated
- Compleated keyword implementation.
- craft
- Craft keyword implementation.
- devour
- Devour keyword implementation.
- emerge
- Emerge keyword implementation.
- equip
- Equip keyword implementation.
- firebending
- Firebending keyword implementation.
- hexproof
- Hexproof keyword implementation.
- keyword_
collection - Keyword collection management.
- keyword_
instance - Keyword instance base data and the Keyword enum.
- keyword_
interface - Keyword interface data model.
- keyword_
with_ amount - Keyword with a numeric amount parameter.
- keyword_
with_ cost - Keyword with a cost parameter.
- keyword_
with_ cost_ and_ amount - Keyword with both a cost and a numeric amount.
- keyword_
with_ cost_ and_ type - Keyword with both a cost and a type parameter.
- keyword_
with_ cost_ interface - Interface for keywords that have an associated cost.
- keyword_
with_ type - Keyword with a type parameter.
- keyword_
with_ type_ interface - Interface for keywords that have a type parameter.
- keywords_
change - Tracks keyword additions and removals.
- kicker
- Kicker keyword implementation.
- mayhem
- Mayhem keyword implementation.
- modular
- Modular keyword implementation.
- ninjutsu
- Ninjutsu keyword implementation.
- partner
- Partner keyword implementation.
- protection
- Protection keyword implementation.
- simple_
keyword - Simple keyword implementation (no parameters).
- suspend
- Suspend keyword implementation.
- trait_
keywords_ change - Interface for keyword changes.
- trample
- Trample keyword implementation.
- vanishing
- Vanishing keyword implementation.
Structs§
- Escape
Info - Info about a card’s escape cost.
- Kicker
Info - Info about a card’s kicker cost(s).
- Suspend
Info - Info about a card’s suspend cost.
Functions§
- extract_
escape - Parse escape info from a KeywordCollection.
- extract_
keyword_ cost - Extract a keyword cost from a KeywordCollection. E.g. collection contains “Flashback:2 R”, name = “Flashback” → Some(“2 R”)
- extract_
keyword_ cost_ from_ all - Extract a keyword cost from multiple collections (intrinsic + granted).
- extract_
keyword_ cost_ str - Extract the cost portion from a single keyword string. E.g. “Ward:2” with name “Ward” → Some(“2”). Used by keyword_gen for inline cost extraction from individual keyword strings.
- extract_
kicker - Parse kicker info from a KeywordCollection.
- extract_
suspend - Parse suspend info from a KeywordCollection. Format: “Suspend:MANA_COST:TIME_COUNTERS” e.g. “Suspend:1 U:3”
- parse_
escape - Parse escape info from keywords. Format: “Escape:MANA_COST:EXILE_COUNT” e.g. “Escape:3 B B:4”
- parse_
keyword_ cost - Parse a keyword cost from a card’s keywords list. E.g. keywords contains “Flashback:2 R”, name = “Flashback” -> Some(“2 R”)
- parse_
kicker - Parse kicker info from keywords. Supports single kicker (“Kicker:1 R”) and double kicker (“Kicker:1 R:1 G”).
- smart_
value_ of - Parse a keyword name string into a
Keywordenum variant (case-insensitive). Convenience re-export ofKeyword::smart_value_of. Mirrors Java’sKeyword.smartValueOf(String).