Skip to main content

CardCollectionView

Trait CardCollectionView 

Source
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§

Source

fn is_empty(&self) -> bool

Source

fn len(&self) -> usize

Source

fn as_slice(&self) -> &[CardId]

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§