pub enum TypeHint {
Ast(TypeHintExpr),
Plain(String),
}Expand description
A type hint annotation
Might be a plain string or an AST fragment
Variants§
Ast(TypeHintExpr)
Plain(String)
Trait Implementations§
impl Eq for TypeHint
impl StructuralPartialEq for TypeHint
Auto Trait Implementations§
impl Freeze for TypeHint
impl RefUnwindSafe for TypeHint
impl Send for TypeHint
impl Sync for TypeHint
impl Unpin for TypeHint
impl UnwindSafe for TypeHint
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