Expand description
Parses a nullable type. Ex: object | object??
?? means an actual ? not an optional requirement
Fields
type_: Tq_mark: Option<QMark>Trait Implementations
sourceimpl<'a> From<MayBeNull<ArrayBuffer>> for NonAnyType<'a>
impl<'a> From<MayBeNull<ArrayBuffer>> for NonAnyType<'a>
sourcefn from(x: MayBeNull<ArrayBuffer>) -> Self
fn from(x: MayBeNull<ArrayBuffer>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<MayBeNull<ArrayBufferView>> for NonAnyType<'a>
impl<'a> From<MayBeNull<ArrayBufferView>> for NonAnyType<'a>
sourcefn from(x: MayBeNull<ArrayBufferView>) -> Self
fn from(x: MayBeNull<ArrayBufferView>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<MayBeNull<Boolean>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Boolean>> for NonAnyType<'a>
sourceimpl<'a> From<MayBeNull<BufferSource>> for NonAnyType<'a>
impl<'a> From<MayBeNull<BufferSource>> for NonAnyType<'a>
sourcefn from(x: MayBeNull<BufferSource>) -> Self
fn from(x: MayBeNull<BufferSource>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<MayBeNull<Byte>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Byte>> for NonAnyType<'a>
sourceimpl<'a> From<MayBeNull<ByteString>> for NonAnyType<'a>
impl<'a> From<MayBeNull<ByteString>> for NonAnyType<'a>
sourcefn from(x: MayBeNull<ByteString>) -> Self
fn from(x: MayBeNull<ByteString>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<MayBeNull<DOMString>> for NonAnyType<'a>
impl<'a> From<MayBeNull<DOMString>> for NonAnyType<'a>
sourceimpl<'a> From<MayBeNull<DataView>> for NonAnyType<'a>
impl<'a> From<MayBeNull<DataView>> for NonAnyType<'a>
sourceimpl<'a> From<MayBeNull<Error>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Error>> for NonAnyType<'a>
sourceimpl<'a> From<MayBeNull<Float32Array>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Float32Array>> for NonAnyType<'a>
sourcefn from(x: MayBeNull<Float32Array>) -> Self
fn from(x: MayBeNull<Float32Array>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<MayBeNull<Float64Array>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Float64Array>> for NonAnyType<'a>
sourcefn from(x: MayBeNull<Float64Array>) -> Self
fn from(x: MayBeNull<Float64Array>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<MayBeNull<FloatingPointType>> for ConstType<'a>
impl<'a> From<MayBeNull<FloatingPointType>> for ConstType<'a>
sourcefn from(x: MayBeNull<FloatingPointType>) -> Self
fn from(x: MayBeNull<FloatingPointType>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<MayBeNull<FloatingPointType>> for NonAnyType<'a>
impl<'a> From<MayBeNull<FloatingPointType>> for NonAnyType<'a>
sourcefn from(x: MayBeNull<FloatingPointType>) -> Self
fn from(x: MayBeNull<FloatingPointType>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<MayBeNull<FrozenArrayType<'a>>> for NonAnyType<'a>
impl<'a> From<MayBeNull<FrozenArrayType<'a>>> for NonAnyType<'a>
sourcefn from(x: MayBeNull<FrozenArrayType<'a>>) -> Self
fn from(x: MayBeNull<FrozenArrayType<'a>>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<MayBeNull<Identifier<'a>>> for ConstType<'a>
impl<'a> From<MayBeNull<Identifier<'a>>> for ConstType<'a>
sourcefn from(x: MayBeNull<Identifier<'a>>) -> Self
fn from(x: MayBeNull<Identifier<'a>>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<MayBeNull<Identifier<'a>>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Identifier<'a>>> for NonAnyType<'a>
sourcefn from(x: MayBeNull<Identifier<'a>>) -> Self
fn from(x: MayBeNull<Identifier<'a>>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<MayBeNull<Int16Array>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Int16Array>> for NonAnyType<'a>
sourcefn from(x: MayBeNull<Int16Array>) -> Self
fn from(x: MayBeNull<Int16Array>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<MayBeNull<Int32Array>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Int32Array>> for NonAnyType<'a>
sourcefn from(x: MayBeNull<Int32Array>) -> Self
fn from(x: MayBeNull<Int32Array>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<MayBeNull<Int8Array>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Int8Array>> for NonAnyType<'a>
sourceimpl<'a> From<MayBeNull<IntegerType>> for ConstType<'a>
impl<'a> From<MayBeNull<IntegerType>> for ConstType<'a>
sourcefn from(x: MayBeNull<IntegerType>) -> Self
fn from(x: MayBeNull<IntegerType>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<MayBeNull<IntegerType>> for NonAnyType<'a>
impl<'a> From<MayBeNull<IntegerType>> for NonAnyType<'a>
sourcefn from(x: MayBeNull<IntegerType>) -> Self
fn from(x: MayBeNull<IntegerType>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<MayBeNull<Object>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Object>> for NonAnyType<'a>
sourceimpl<'a> From<MayBeNull<Octet>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Octet>> for NonAnyType<'a>
sourceimpl<'a> From<MayBeNull<Parenthesized<Punctuated<UnionMemberType<'a>, Or>>>> for Type<'a>
impl<'a> From<MayBeNull<Parenthesized<Punctuated<UnionMemberType<'a>, Or>>>> for Type<'a>
sourceimpl<'a> From<MayBeNull<Parenthesized<Punctuated<UnionMemberType<'a>, Or>>>> for UnionMemberType<'a>
impl<'a> From<MayBeNull<Parenthesized<Punctuated<UnionMemberType<'a>, Or>>>> for UnionMemberType<'a>
sourceimpl<'a> From<MayBeNull<RecordType<'a>>> for NonAnyType<'a>
impl<'a> From<MayBeNull<RecordType<'a>>> for NonAnyType<'a>
sourcefn from(x: MayBeNull<RecordType<'a>>) -> Self
fn from(x: MayBeNull<RecordType<'a>>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<MayBeNull<SequenceType<'a>>> for NonAnyType<'a>
impl<'a> From<MayBeNull<SequenceType<'a>>> for NonAnyType<'a>
sourcefn from(x: MayBeNull<SequenceType<'a>>) -> Self
fn from(x: MayBeNull<SequenceType<'a>>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<MayBeNull<Symbol>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Symbol>> for NonAnyType<'a>
sourceimpl<'a> From<MayBeNull<USVString>> for NonAnyType<'a>
impl<'a> From<MayBeNull<USVString>> for NonAnyType<'a>
sourceimpl<'a> From<MayBeNull<Uint16Array>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Uint16Array>> for NonAnyType<'a>
sourcefn from(x: MayBeNull<Uint16Array>) -> Self
fn from(x: MayBeNull<Uint16Array>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<MayBeNull<Uint32Array>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Uint32Array>> for NonAnyType<'a>
sourcefn from(x: MayBeNull<Uint32Array>) -> Self
fn from(x: MayBeNull<Uint32Array>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<MayBeNull<Uint8Array>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Uint8Array>> for NonAnyType<'a>
sourcefn from(x: MayBeNull<Uint8Array>) -> Self
fn from(x: MayBeNull<Uint8Array>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<MayBeNull<Uint8ClampedArray>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Uint8ClampedArray>> for NonAnyType<'a>
sourcefn from(x: MayBeNull<Uint8ClampedArray>) -> Self
fn from(x: MayBeNull<Uint8ClampedArray>) -> Self
Converts to this type from the input type.
sourceimpl<T: Ord> Ord for MayBeNull<T>
impl<T: Ord> Ord for MayBeNull<T>
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: PartialOrd> PartialOrd<MayBeNull<T>> for MayBeNull<T>
impl<T: PartialOrd> PartialOrd<MayBeNull<T>> for MayBeNull<T>
sourcefn partial_cmp(&self, other: &MayBeNull<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &MayBeNull<T>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl<T: Copy> Copy for MayBeNull<T>
impl<T: Eq> Eq for MayBeNull<T>
impl<T> StructuralEq for MayBeNull<T>
impl<T> StructuralPartialEq for MayBeNull<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for MayBeNull<T> where
T: RefUnwindSafe,
impl<T> Send for MayBeNull<T> where
T: Send,
impl<T> Sync for MayBeNull<T> where
T: Sync,
impl<T> Unpin for MayBeNull<T> where
T: Unpin,
impl<T> UnwindSafe for MayBeNull<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more