Trait webidl_utils::extend::ExtendNonAnyType

source ·
pub trait ExtendNonAnyType<'a> {
Show 59 methods // Required methods fn is_optional(&self) -> bool; fn is_required(&self) -> bool; fn promise(p: PromiseType<'a>) -> Self; fn integer(i: IntegerType) -> Self; fn integer_opt(i: IntegerType) -> Self; fn floating_point(f: FloatingPointType) -> Self; fn floating_point_opt(f: FloatingPointType) -> Self; fn boolean() -> Self; fn boolean_opt() -> Self; fn byte() -> Self; fn byte_opt() -> Self; fn octet() -> Self; fn octet_opt() -> Self; fn byte_string() -> Self; fn byte_string_opt() -> Self; fn dom_string() -> Self; fn dom_string_opt() -> Self; fn usv_string() -> Self; fn usv_string_opt() -> Self; fn sequence(s: SequenceType<'a>) -> Self; fn sequence_opt(s: SequenceType<'a>) -> Self; fn object() -> Self; fn object_opt() -> Self; fn symbol() -> Self; fn symbol_opt() -> Self; fn error() -> Self; fn error_opt() -> Self; fn array_buffer() -> Self; fn array_buffer_opt() -> Self; fn data_view() -> Self; fn data_view_opt() -> Self; fn int8_array() -> Self; fn int8_array_opt() -> Self; fn int16_array() -> Self; fn int16_array_opt() -> Self; fn int32_array() -> Self; fn int32_array_opt() -> Self; fn uint8_array() -> Self; fn uint8_array_opt() -> Self; fn uint16_array() -> Self; fn uint16_array_opt() -> Self; fn uint32_array() -> Self; fn uint32_array_opt() -> Self; fn uint8_clamped_array() -> Self; fn uint8_clamped_array_opt() -> Self; fn float32_array() -> Self; fn float32_array_opt() -> Self; fn float64_array() -> Self; fn float64_array_opt() -> Self; fn array_buffer_view() -> Self; fn array_buffer_view_opt() -> Self; fn buffer_source() -> Self; fn buffer_source_opt() -> Self; fn frozen_array(f: FrozenArrayType<'a>) -> Self; fn frozen_array_opt(f: FrozenArrayType<'a>) -> Self; fn record(r: RecordType<'a>) -> Self; fn record_opt(r: RecordType<'a>) -> Self; fn identifier(i: &'a str) -> Self; fn identifier_opt(i: &'a str) -> Self;
}
Expand description

Extension methods for NonAnyType

Required Methods§

source

fn is_optional(&self) -> bool

source

fn is_required(&self) -> bool

source

fn promise(p: PromiseType<'a>) -> Self

source

fn integer(i: IntegerType) -> Self

source

fn integer_opt(i: IntegerType) -> Self

source

fn floating_point(f: FloatingPointType) -> Self

source

fn floating_point_opt(f: FloatingPointType) -> Self

source

fn boolean() -> Self

source

fn boolean_opt() -> Self

source

fn byte() -> Self

source

fn byte_opt() -> Self

source

fn octet() -> Self

source

fn octet_opt() -> Self

source

fn byte_string() -> Self

source

fn byte_string_opt() -> Self

source

fn dom_string() -> Self

source

fn dom_string_opt() -> Self

source

fn usv_string() -> Self

source

fn usv_string_opt() -> Self

source

fn sequence(s: SequenceType<'a>) -> Self

source

fn sequence_opt(s: SequenceType<'a>) -> Self

source

fn object() -> Self

source

fn object_opt() -> Self

source

fn symbol() -> Self

source

fn symbol_opt() -> Self

source

fn error() -> Self

source

fn error_opt() -> Self

source

fn array_buffer() -> Self

source

fn array_buffer_opt() -> Self

source

fn data_view() -> Self

source

fn data_view_opt() -> Self

source

fn int8_array() -> Self

source

fn int8_array_opt() -> Self

source

fn int16_array() -> Self

source

fn int16_array_opt() -> Self

source

fn int32_array() -> Self

source

fn int32_array_opt() -> Self

source

fn uint8_array() -> Self

source

fn uint8_array_opt() -> Self

source

fn uint16_array() -> Self

source

fn uint16_array_opt() -> Self

source

fn uint32_array() -> Self

source

fn uint32_array_opt() -> Self

source

fn uint8_clamped_array() -> Self

source

fn uint8_clamped_array_opt() -> Self

source

fn float32_array() -> Self

source

fn float32_array_opt() -> Self

source

fn float64_array() -> Self

source

fn float64_array_opt() -> Self

source

fn array_buffer_view() -> Self

source

fn array_buffer_view_opt() -> Self

source

fn buffer_source() -> Self

source

fn buffer_source_opt() -> Self

source

fn frozen_array(f: FrozenArrayType<'a>) -> Self

source

fn frozen_array_opt(f: FrozenArrayType<'a>) -> Self

source

fn record(r: RecordType<'a>) -> Self

source

fn record_opt(r: RecordType<'a>) -> Self

source

fn identifier(i: &'a str) -> Self

source

fn identifier_opt(i: &'a str) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> ExtendNonAnyType<'a> for NonAnyType<'a>

source§

fn is_optional(&self) -> bool

source§

fn is_required(&self) -> bool

source§

fn promise(p: PromiseType<'a>) -> Self

source§

fn integer(i: IntegerType) -> Self

source§

fn integer_opt(i: IntegerType) -> Self

source§

fn floating_point(f: FloatingPointType) -> Self

source§

fn floating_point_opt(f: FloatingPointType) -> Self

source§

fn boolean() -> Self

source§

fn boolean_opt() -> Self

source§

fn byte() -> Self

source§

fn byte_opt() -> Self

source§

fn octet() -> Self

source§

fn octet_opt() -> Self

source§

fn byte_string() -> Self

source§

fn byte_string_opt() -> Self

source§

fn dom_string() -> Self

source§

fn dom_string_opt() -> Self

source§

fn usv_string() -> Self

source§

fn usv_string_opt() -> Self

source§

fn sequence(s: SequenceType<'a>) -> Self

source§

fn sequence_opt(s: SequenceType<'a>) -> Self

source§

fn object() -> Self

source§

fn object_opt() -> Self

source§

fn symbol() -> Self

source§

fn symbol_opt() -> Self

source§

fn error() -> Self

source§

fn error_opt() -> Self

source§

fn array_buffer() -> Self

source§

fn array_buffer_opt() -> Self

source§

fn data_view() -> Self

source§

fn data_view_opt() -> Self

source§

fn int8_array() -> Self

source§

fn int8_array_opt() -> Self

source§

fn int16_array() -> Self

source§

fn int16_array_opt() -> Self

source§

fn int32_array() -> Self

source§

fn int32_array_opt() -> Self

source§

fn uint8_array() -> Self

source§

fn uint8_array_opt() -> Self

source§

fn uint16_array() -> Self

source§

fn uint16_array_opt() -> Self

source§

fn uint32_array() -> Self

source§

fn uint32_array_opt() -> Self

source§

fn uint8_clamped_array() -> Self

source§

fn uint8_clamped_array_opt() -> Self

source§

fn float32_array() -> Self

source§

fn float32_array_opt() -> Self

source§

fn float64_array() -> Self

source§

fn float64_array_opt() -> Self

source§

fn array_buffer_view() -> Self

source§

fn array_buffer_view_opt() -> Self

source§

fn buffer_source() -> Self

source§

fn buffer_source_opt() -> Self

source§

fn frozen_array(f: FrozenArrayType<'a>) -> Self

source§

fn frozen_array_opt(f: FrozenArrayType<'a>) -> Self

source§

fn record(r: RecordType<'a>) -> Self

source§

fn record_opt(r: RecordType<'a>) -> Self

source§

fn identifier(i: &'a str) -> Self

source§

fn identifier_opt(i: &'a str) -> Self

Implementors§