Skip to main content

WebRenderEpochToU16

Trait WebRenderEpochToU16 

Source
pub trait WebRenderEpochToU16 {
    // Required method
    fn as_u16(&self) -> u16;
}

Required Methods§

Source

fn as_u16(&self) -> u16

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl WebRenderEpochToU16 for Epoch

Source§

fn as_u16(&self) -> u16

The value of this Epoch as a u16 value. Note that if this Epoch’s value is more than u16::MAX, then the return value will be modulo u16::MAX.

Implementors§