pub struct MissingImport {
pub module: String,
pub symbols: Vec<String>,
pub suggested_location: usize,
pub confidence: f32,
}Expand description
A symbol that is used but not imported
Fields§
§module: StringModule name that should be imported
symbols: Vec<String>List of symbols that need to be imported
suggested_location: usizeSuggested line number to insert the import
confidence: f32Confidence level of the suggestion (0.0 to 1.0)
Trait Implementations§
Source§impl Clone for MissingImport
impl Clone for MissingImport
Source§fn clone(&self) -> MissingImport
fn clone(&self) -> MissingImport
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 MissingImport
impl Debug for MissingImport
Source§impl<'de> Deserialize<'de> for MissingImport
impl<'de> Deserialize<'de> for MissingImport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MissingImport
impl RefUnwindSafe for MissingImport
impl Send for MissingImport
impl Sync for MissingImport
impl Unpin for MissingImport
impl UnsafeUnpin for MissingImport
impl UnwindSafe for MissingImport
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