Trait 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

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<'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§