pub struct SuggestionEngine;Expand description
Provides intelligent suggestions based on error patterns
Implementations§
Source§impl SuggestionEngine
impl SuggestionEngine
Sourcepub fn suggest_similar_name(name: &str, available: &[String]) -> Option<String>
pub fn suggest_similar_name(name: &str, available: &[String]) -> Option<String>
Suggest similar identifier names (for typos)
Sourcepub fn is_fancy_quote(ch: char) -> bool
pub fn is_fancy_quote(ch: char) -> bool
Check if a character looks like a quote that should be ASCII
Sourcepub fn suggest_ascii_quote(ch: char) -> Option<char>
pub fn suggest_ascii_quote(ch: char) -> Option<char>
Get the ASCII equivalent of a fancy quote
Sourcepub fn suggest_for_c_style_mistake(code: &str) -> Option<String>
pub fn suggest_for_c_style_mistake(code: &str) -> Option<String>
Common beginner mistakes with C-style syntax
Sourcepub fn suggest_type_conversion(from_type: &str, to_type: &str) -> Option<String>
pub fn suggest_type_conversion(from_type: &str, to_type: &str) -> Option<String>
Suggest fixes for common type errors
Sourcepub fn suggest_import_for_function(func_name: &str) -> Option<String>
pub fn suggest_import_for_function(func_name: &str) -> Option<String>
Suggest fixes for missing imports
Sourcepub fn check_balanced_delimiters(code: &str) -> Option<String>
pub fn check_balanced_delimiters(code: &str) -> Option<String>
Check if parentheses are balanced
Auto Trait Implementations§
impl Freeze for SuggestionEngine
impl RefUnwindSafe for SuggestionEngine
impl Send for SuggestionEngine
impl Sync for SuggestionEngine
impl Unpin for SuggestionEngine
impl UnsafeUnpin for SuggestionEngine
impl UnwindSafe for SuggestionEngine
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