pub struct MayBeNull<T> {
pub type_: T,
pub q_mark: Option<QMark>,
}
Expand description
Parses a nullable type. Ex: object | object??
??
means an actual ? not an optional requirement
Fields§
§type_: T
§q_mark: Option<QMark>
Trait Implementations§
Source§impl<'a> From<MayBeNull<ArrayBuffer>> for NonAnyType<'a>
impl<'a> From<MayBeNull<ArrayBuffer>> for NonAnyType<'a>
Source§fn from(x: MayBeNull<ArrayBuffer>) -> Self
fn from(x: MayBeNull<ArrayBuffer>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MayBeNull<ArrayBufferView>> for NonAnyType<'a>
impl<'a> From<MayBeNull<ArrayBufferView>> for NonAnyType<'a>
Source§fn from(x: MayBeNull<ArrayBufferView>) -> Self
fn from(x: MayBeNull<ArrayBufferView>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MayBeNull<BufferSource>> for NonAnyType<'a>
impl<'a> From<MayBeNull<BufferSource>> for NonAnyType<'a>
Source§fn from(x: MayBeNull<BufferSource>) -> Self
fn from(x: MayBeNull<BufferSource>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MayBeNull<ByteString>> for NonAnyType<'a>
impl<'a> From<MayBeNull<ByteString>> for NonAnyType<'a>
Source§fn from(x: MayBeNull<ByteString>) -> Self
fn from(x: MayBeNull<ByteString>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MayBeNull<Float32Array>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Float32Array>> for NonAnyType<'a>
Source§fn from(x: MayBeNull<Float32Array>) -> Self
fn from(x: MayBeNull<Float32Array>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MayBeNull<Float64Array>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Float64Array>> for NonAnyType<'a>
Source§fn from(x: MayBeNull<Float64Array>) -> Self
fn from(x: MayBeNull<Float64Array>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MayBeNull<FloatingPointType>> for ConstType<'a>
impl<'a> From<MayBeNull<FloatingPointType>> for ConstType<'a>
Source§fn from(x: MayBeNull<FloatingPointType>) -> Self
fn from(x: MayBeNull<FloatingPointType>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MayBeNull<FloatingPointType>> for NonAnyType<'a>
impl<'a> From<MayBeNull<FloatingPointType>> for NonAnyType<'a>
Source§fn from(x: MayBeNull<FloatingPointType>) -> Self
fn from(x: MayBeNull<FloatingPointType>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MayBeNull<FrozenArrayType<'a>>> for NonAnyType<'a>
impl<'a> From<MayBeNull<FrozenArrayType<'a>>> for NonAnyType<'a>
Source§fn from(x: MayBeNull<FrozenArrayType<'a>>) -> Self
fn from(x: MayBeNull<FrozenArrayType<'a>>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MayBeNull<Identifier<'a>>> for ConstType<'a>
impl<'a> From<MayBeNull<Identifier<'a>>> for ConstType<'a>
Source§fn from(x: MayBeNull<Identifier<'a>>) -> Self
fn from(x: MayBeNull<Identifier<'a>>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MayBeNull<Identifier<'a>>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Identifier<'a>>> for NonAnyType<'a>
Source§fn from(x: MayBeNull<Identifier<'a>>) -> Self
fn from(x: MayBeNull<Identifier<'a>>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MayBeNull<Int16Array>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Int16Array>> for NonAnyType<'a>
Source§fn from(x: MayBeNull<Int16Array>) -> Self
fn from(x: MayBeNull<Int16Array>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MayBeNull<Int32Array>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Int32Array>> for NonAnyType<'a>
Source§fn from(x: MayBeNull<Int32Array>) -> Self
fn from(x: MayBeNull<Int32Array>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MayBeNull<IntegerType>> for ConstType<'a>
impl<'a> From<MayBeNull<IntegerType>> for ConstType<'a>
Source§fn from(x: MayBeNull<IntegerType>) -> Self
fn from(x: MayBeNull<IntegerType>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MayBeNull<IntegerType>> for NonAnyType<'a>
impl<'a> From<MayBeNull<IntegerType>> for NonAnyType<'a>
Source§fn from(x: MayBeNull<IntegerType>) -> Self
fn from(x: MayBeNull<IntegerType>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MayBeNull<Parenthesized<Punctuated<UnionMemberType<'a>, Or>>>> for Type<'a>
impl<'a> From<MayBeNull<Parenthesized<Punctuated<UnionMemberType<'a>, Or>>>> for Type<'a>
Source§impl<'a> From<MayBeNull<Parenthesized<Punctuated<UnionMemberType<'a>, Or>>>> for UnionMemberType<'a>
impl<'a> From<MayBeNull<Parenthesized<Punctuated<UnionMemberType<'a>, Or>>>> for UnionMemberType<'a>
Source§impl<'a> From<MayBeNull<RecordType<'a>>> for NonAnyType<'a>
impl<'a> From<MayBeNull<RecordType<'a>>> for NonAnyType<'a>
Source§fn from(x: MayBeNull<RecordType<'a>>) -> Self
fn from(x: MayBeNull<RecordType<'a>>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MayBeNull<SequenceType<'a>>> for NonAnyType<'a>
impl<'a> From<MayBeNull<SequenceType<'a>>> for NonAnyType<'a>
Source§fn from(x: MayBeNull<SequenceType<'a>>) -> Self
fn from(x: MayBeNull<SequenceType<'a>>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MayBeNull<Uint16Array>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Uint16Array>> for NonAnyType<'a>
Source§fn from(x: MayBeNull<Uint16Array>) -> Self
fn from(x: MayBeNull<Uint16Array>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MayBeNull<Uint32Array>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Uint32Array>> for NonAnyType<'a>
Source§fn from(x: MayBeNull<Uint32Array>) -> Self
fn from(x: MayBeNull<Uint32Array>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MayBeNull<Uint8Array>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Uint8Array>> for NonAnyType<'a>
Source§fn from(x: MayBeNull<Uint8Array>) -> Self
fn from(x: MayBeNull<Uint8Array>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MayBeNull<Uint8ClampedArray>> for NonAnyType<'a>
impl<'a> From<MayBeNull<Uint8ClampedArray>> for NonAnyType<'a>
Source§fn from(x: MayBeNull<Uint8ClampedArray>) -> Self
fn from(x: MayBeNull<Uint8ClampedArray>) -> Self
Converts to this type from the input type.
Source§impl<T: Ord> Ord for MayBeNull<T>
impl<T: Ord> Ord for MayBeNull<T>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd> PartialOrd for MayBeNull<T>
impl<T: PartialOrd> PartialOrd for MayBeNull<T>
impl<T: Copy> Copy for MayBeNull<T>
impl<T: Eq> Eq for MayBeNull<T>
impl<T> StructuralPartialEq for MayBeNull<T>
Auto Trait Implementations§
impl<T> Freeze for MayBeNull<T>where
T: Freeze,
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more