summed_area_table

Trait SourceValue

Source
pub trait SourceValue: Copy {
    // Required method
    fn as_f64(self) -> f64;
}
Expand description

This trait must be implemented for the single values of a summed area table source. This library contains implementations for all numeric primitive types.

Required Methods§

Source

fn as_f64(self) -> f64

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SourceValue for f32

Source§

fn as_f64(self) -> f64

Source§

impl SourceValue for f64

Source§

fn as_f64(self) -> f64

Source§

impl SourceValue for i8

Source§

fn as_f64(self) -> f64

Source§

impl SourceValue for i32

Source§

fn as_f64(self) -> f64

Source§

impl SourceValue for i64

Source§

fn as_f64(self) -> f64

Source§

impl SourceValue for isize

Source§

fn as_f64(self) -> f64

Source§

impl SourceValue for u8

Source§

fn as_f64(self) -> f64

Source§

impl SourceValue for u32

Source§

fn as_f64(self) -> f64

Source§

impl SourceValue for u64

Source§

fn as_f64(self) -> f64

Source§

impl SourceValue for usize

Source§

fn as_f64(self) -> f64

Source§

impl<'a> SourceValue for &'a f32

Source§

fn as_f64(self) -> f64

Source§

impl<'a> SourceValue for &'a f64

Source§

fn as_f64(self) -> f64

Source§

impl<'a> SourceValue for &'a i8

Source§

fn as_f64(self) -> f64

Source§

impl<'a> SourceValue for &'a i32

Source§

fn as_f64(self) -> f64

Source§

impl<'a> SourceValue for &'a i64

Source§

fn as_f64(self) -> f64

Source§

impl<'a> SourceValue for &'a isize

Source§

fn as_f64(self) -> f64

Source§

impl<'a> SourceValue for &'a u8

Source§

fn as_f64(self) -> f64

Source§

impl<'a> SourceValue for &'a u32

Source§

fn as_f64(self) -> f64

Source§

impl<'a> SourceValue for &'a u64

Source§

fn as_f64(self) -> f64

Source§

impl<'a> SourceValue for &'a usize

Source§

fn as_f64(self) -> f64

Implementors§