pub enum TyKind {
Path {
path: Path,
args: Vec<Ty>,
},
Fn {
params: Vec<(Mode, Ty)>,
ret: Option<Box<Ty>>,
},
SelfType,
Error,
}Expand description
The forms of a written type.
Variants§
Path
Int, List<User>, model.User.
Fn
fn(Int, mut List<Int>) -> Bool
Fields
SelfType
Self
Error
A type that could not be parsed.
Trait Implementations§
impl StructuralPartialEq for TyKind
Auto Trait Implementations§
impl Freeze for TyKind
impl RefUnwindSafe for TyKind
impl Send for TyKind
impl Sync for TyKind
impl Unpin for TyKind
impl UnsafeUnpin for TyKind
impl UnwindSafe for TyKind
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