Skip to main content

SizeExt

Trait SizeExt 

Source
pub trait SizeExt {
    // Required methods
    fn from_i64(value: i64) -> Self;
    fn from_u64(value: u64) -> Self;
    fn to_u64(self) -> u64;
    fn to_usize(self) -> Option<usize>;
}
Expand description

Provides useful helper functions for the Size type.

Required Methods§

Source

fn from_i64(value: i64) -> Self

Source

fn from_u64(value: u64) -> Self

Source

fn to_u64(self) -> u64

Source

fn to_usize(self) -> Option<usize>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§