pub enum Ty {
Literal(TyLit),
Named(String),
Parameterized(Box<Ty>, Box<Node>),
AnyOf(Vec<Ty>),
Infer,
}
Variants
Literal(TyLit)
Named(String)
Parameterized(Box<Ty>, Box<Node>)
AnyOf(Vec<Ty>)
Infer
Means that we have no information about the type of the variable and that it should be inferred from other usages.
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Ty
impl<'de> Deserialize<'de> for Ty
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialOrd<Ty> for Ty
impl PartialOrd<Ty> for Ty
Implements a partial ordering or types:
- higher up are types that include many others (AnyOf, Any) and
- on the bottom are the atomic types (bool, string).
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moreimpl StructuralPartialEq for Ty
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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