pub trait ValidShape<T>where
    T: Zero,{
    // Required method
    fn is_empty_under_thousand(&self, thousand: T) -> bool;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}
Expand description

A trait for checking if a shape is empty

Required Methods§

source

fn is_empty_under_thousand(&self, thousand: T) -> bool

Provided Methods§

source

fn is_empty(&self) -> bool

Implementors§

source§

impl<T> ValidShape<T> for Rectangle<T>where T: Zero + PartialOrd,

source§

impl<T> ValidShape<T> for Square<T>where T: Zero + PartialOrd,

source§

impl<T> ValidShape<T> for Triangle<T>where T: Num + PartialOrd + Clone,