Trait hotshot_types::vote::HasViewNumber
source · pub trait HasViewNumber<TYPES: NodeType> {
// Required method
fn view_number(&self) -> TYPES::View;
}
Expand description
Any type that is associated with a view
Required Methods§
sourcefn view_number(&self) -> TYPES::View
fn view_number(&self) -> TYPES::View
Returns the view number the type refers to.