Skip to main content

ToGlobalId

Trait ToGlobalId 

Source
pub trait ToGlobalId {
    // Required method
    fn to_global_id(&self) -> u32;
}
Expand description

A trait for converting a value to a global ID.

Required Methods§

Source

fn to_global_id(&self) -> u32

Converts the value to a global ID.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ToGlobalId for u16

Implementors§