pub enum Type {
All(AllType),
Unknown(UnknownType),
Nullable(NullableType),
NonNullable(NonNullableType),
Optional(OptionalType),
Function(FunctionType),
Variadic(VariadicType),
NamePath(NamePathType),
Union(UnionType),
Paren(ParenType),
}Variants§
All(AllType)
*
Unknown(UnknownType)
?
Nullable(NullableType)
NonNullable(NonNullableType)
Optional(OptionalType)
Function(FunctionType)
Variadic(VariadicType)
NamePath(NamePathType)
Union(UnionType)
Paren(ParenType)
Trait Implementations§
Source§impl From<FunctionType> for Type
impl From<FunctionType> for Type
Source§fn from(v: FunctionType) -> Self
fn from(v: FunctionType) -> Self
Converts to this type from the input type.
Source§impl From<NamePathType> for Type
impl From<NamePathType> for Type
Source§fn from(v: NamePathType) -> Self
fn from(v: NamePathType) -> Self
Converts to this type from the input type.
Source§impl From<NonNullableType> for Type
impl From<NonNullableType> for Type
Source§fn from(v: NonNullableType) -> Self
fn from(v: NonNullableType) -> Self
Converts to this type from the input type.
Source§impl From<NullableType> for Type
impl From<NullableType> for Type
Source§fn from(v: NullableType) -> Self
fn from(v: NullableType) -> Self
Converts to this type from the input type.
Source§impl From<OptionalType> for Type
impl From<OptionalType> for Type
Source§fn from(v: OptionalType) -> Self
fn from(v: OptionalType) -> Self
Converts to this type from the input type.
Source§impl From<UnknownType> for Type
impl From<UnknownType> for Type
Source§fn from(v: UnknownType) -> Self
fn from(v: UnknownType) -> Self
Converts to this type from the input type.
Source§impl From<VariadicType> for Type
impl From<VariadicType> for Type
Source§fn from(v: VariadicType) -> Self
fn from(v: VariadicType) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more