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§
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
Object Safety§
This trait is not object safe.