pub trait CardCollectionView {
// Required methods
fn is_empty(&self) -> bool;
fn len(&self) -> usize;
fn as_slice(&self) -> &[CardId];
}Expand description
Lightweight collection view for card ids.
Mirrors Java’s marker interface CardCollectionView.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".