Trait gear_common::storage::Counted
source · pub trait Counted {
type Length: Default + PartialEq;
// Required method
fn len() -> Self::Length;
// Provided method
fn is_empty() -> bool { ... }
}
Expand description
Represents default counting logic, by providing ability to return length of the object as specified (associated) type or answer the question is the object empty.
Required Associated Types§
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.