Trait ExtendMayBeNull

Source
pub trait ExtendMayBeNull<T> {
    // Required methods
    fn new(type_: T, q_mark: Option<QMark>) -> Self;
    fn new_optional(type_: T) -> Self;
    fn new_required(type_: T) -> Self;
    fn is_optional(&self) -> bool;
    fn is_required(&self) -> bool;
}
Expand description

Extension methods for MayBeNull<T>

Required Methods§

Source

fn new(type_: T, q_mark: Option<QMark>) -> Self

Source

fn new_optional(type_: T) -> Self

Source

fn new_required(type_: T) -> Self

Source

fn is_optional(&self) -> bool

Source

fn is_required(&self) -> bool

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<T> ExtendMayBeNull<T> for MayBeNull<T>

Source§

fn new(type_: T, q_mark: Option<QMark>) -> Self

Source§

fn new_optional(type_: T) -> Self

Source§

fn new_required(type_: T) -> Self

Source§

fn is_optional(&self) -> bool

Source§

fn is_required(&self) -> bool

Implementors§