pub enum PureType {
Path(String),
Ref {
lifetime: Option<String>,
is_mut: bool,
ty: Box<PureType>,
},
Tuple(Vec<PureType>),
Array {
ty: Box<PureType>,
len: String,
},
Slice(Box<PureType>),
Fn {
params: Vec<PureType>,
ret: Option<Box<PureType>>,
},
ImplTrait(Vec<String>),
TraitObject(Vec<String>),
Infer,
Never,
Other(String),
}Expand description
A type.
Variants§
Path(String)
Path type: String, std::io::Result<T>
Ref
Reference: &T, &mut T, &'a T
Fields
Tuple(Vec<PureType>)
Tuple: (A, B, C)
Array
Array: [T; N]
Slice(Box<PureType>)
Slice: [T]
Fn
Function pointer: fn(A) -> B
Fields
ImplTrait(Vec<String>)
Impl trait: impl Trait
TraitObject(Vec<String>)
Dyn trait: dyn Trait
Infer
Inferred: _
Never
Never: !
Other(String)
Other (as string).
Trait Implementations§
impl Eq for PureType
impl StructuralPartialEq for PureType
Auto Trait Implementations§
impl Freeze for PureType
impl RefUnwindSafe for PureType
impl Send for PureType
impl Sync for PureType
impl Unpin for PureType
impl UnsafeUnpin for PureType
impl UnwindSafe for PureType
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