Skip to main content

MaybeNa

Trait MaybeNa 

Source
pub trait MaybeNa {
    // Required method
    fn has_na(&self) -> bool;
}
Expand description

A type whose values can hold R’s NA, with the check NonNa::new makes.

has_na counts what anyNA() counts: NA_integer_, NA logicals, NaN doubles and complex numbers (R’s NA_real_ is one), and None, which is how an Option element holds NA. A String never holds one: R’s NA_character_ has no String form.

Required Methods§

Source

fn has_na(&self) -> bool

Whether the value holds an NA.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl MaybeNa for String

Source§

fn has_na(&self) -> bool

Source§

impl MaybeNa for bool

Source§

fn has_na(&self) -> bool

Source§

impl MaybeNa for f32

Source§

fn has_na(&self) -> bool

Source§

impl MaybeNa for f64

Source§

fn has_na(&self) -> bool

Source§

impl MaybeNa for i8

Source§

fn has_na(&self) -> bool

Source§

impl MaybeNa for i16

Source§

fn has_na(&self) -> bool

Source§

impl MaybeNa for i32

Source§

fn has_na(&self) -> bool

Source§

impl MaybeNa for i64

Source§

fn has_na(&self) -> bool

Source§

impl MaybeNa for isize

Source§

fn has_na(&self) -> bool

Source§

impl MaybeNa for str

Source§

fn has_na(&self) -> bool

Source§

impl MaybeNa for u8

Source§

fn has_na(&self) -> bool

Source§

impl MaybeNa for u16

Source§

fn has_na(&self) -> bool

Source§

impl MaybeNa for u32

Source§

fn has_na(&self) -> bool

Source§

impl MaybeNa for u64

Source§

fn has_na(&self) -> bool

Source§

impl MaybeNa for usize

Source§

fn has_na(&self) -> bool

Source§

impl<T: MaybeNa + ?Sized> MaybeNa for &T

Source§

fn has_na(&self) -> bool

Source§

impl<T: MaybeNa + ?Sized> MaybeNa for Box<T>

Source§

fn has_na(&self) -> bool

Source§

impl<T: MaybeNa, const N: usize> MaybeNa for [T; N]

Source§

fn has_na(&self) -> bool

Source§

impl<T: MaybeNa> MaybeNa for Option<T>

Source§

fn has_na(&self) -> bool

Source§

impl<T: MaybeNa> MaybeNa for Vec<T>

Source§

fn has_na(&self) -> bool

Source§

impl<T: MaybeNa> MaybeNa for [T]

Source§

fn has_na(&self) -> bool

Implementors§