Trait webidl_utils::extend::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

Object Safety§

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§