dsalgo 0.3.10

A package for Datastructures and Algorithms.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::static_matrix_property_trait::Shape;

pub trait Size {
    fn size() -> usize;
}

impl<P: Size> Shape for P {
    fn shape() -> (usize, usize) {
        (Self::size(), Self::size())
    }
}