Dispatchable

Trait Dispatchable 

Source
pub trait Dispatchable: Clone {
    // Required method
    fn item_count(&self) -> usize;
}
Expand description

A value that can be dispatched.

Required Methods§

Source

fn item_count(&self) -> usize

Returns the number of items in the dispatchable value.

This determines how many underlying items are contained within the dispatchable value. For single item types, this will generally be one. For container types, this will be the number of items contained within the container.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§