pub struct InferredType {
pub type_name: String,
pub confidence: u8,
pub source: TypeInferenceSource,
pub related_info: Vec<String>,
}Expand description
推断的类型信息
表示类型推断的结果,包含推断出的类型和置信度。
Fields§
§type_name: String推断的类型名称
confidence: u8类型置信度(0-100)
source: TypeInferenceSource类型来源
相关类型信息
Implementations§
Source§impl InferredType
impl InferredType
Sourcepub fn with_confidence(self, confidence: u8) -> Self
pub fn with_confidence(self, confidence: u8) -> Self
Sourcepub fn with_source(self, source: TypeInferenceSource) -> Self
pub fn with_source(self, source: TypeInferenceSource) -> Self
Trait Implementations§
Source§impl Clone for InferredType
impl Clone for InferredType
Source§fn clone(&self) -> InferredType
fn clone(&self) -> InferredType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InferredType
impl Debug for InferredType
Source§impl PartialEq for InferredType
impl PartialEq for InferredType
impl Eq for InferredType
impl StructuralPartialEq for InferredType
Auto Trait Implementations§
impl Freeze for InferredType
impl RefUnwindSafe for InferredType
impl Send for InferredType
impl Sync for InferredType
impl Unpin for InferredType
impl UnsafeUnpin for InferredType
impl UnwindSafe for InferredType
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