Skip to main content

manabrew_engine/card/
card_collection_view.rs

1use crate::ids::CardId;
2
3/// Lightweight collection view for card ids.
4/// Mirrors Java's marker interface `CardCollectionView`.
5pub trait CardCollectionView {
6    fn is_empty(&self) -> bool;
7    fn len(&self) -> usize;
8    fn as_slice(&self) -> &[CardId];
9}