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