Skip to main content

Number

Trait Number 

Source
pub trait Number {
    type Output;

    // Required method
    fn number(&self) -> Self::Output;
}
Available on crate feature numbered only.
Expand description

Trait implemented by messages with attached number.

Required Associated Types§

Source

type Output

Message number type.

Required Methods§

Source

fn number(&self) -> Self::Output

Message number.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<N, T> Number for Wrapper<N, T>
where N: Clone,