Skip to main content

Module keyword

Module keyword 

Source

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§

EscapeInfo
Info about a card’s escape cost.
KickerInfo
Info about a card’s kicker cost(s).
SuspendInfo
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 Keyword enum variant (case-insensitive). Convenience re-export of Keyword::smart_value_of. Mirrors Java’s Keyword.smartValueOf(String).