pub struct TypeHint {
pub target: String,
pub type_name: String,
pub position: Position,
pub is_copy: bool,
pub is_reference: bool,
pub is_mut: bool,
}Expand description
Parsed type hint with additional analysis
Fields§
§target: StringThe variable/expression this hint applies to
type_name: StringThe inferred type
position: PositionPosition in source
is_copy: boolWhether this type is Copy
is_reference: boolWhether this type is a reference
is_mut: boolWhether this type is mutable
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeHint
impl RefUnwindSafe for TypeHint
impl Send for TypeHint
impl Sync for TypeHint
impl Unpin for TypeHint
impl UnsafeUnpin 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