manabrew-engine 0.2.4

Magic: The Gathering rules engine — a Rust port of Forge
Documentation
1
2
3
4
5
6
7
8
9
use crate::ids::CardId;

/// Lightweight collection view for card ids.
/// Mirrors Java's marker interface `CardCollectionView`.
pub trait CardCollectionView {
    fn is_empty(&self) -> bool;
    fn len(&self) -> usize;
    fn as_slice(&self) -> &[CardId];
}