pub struct Suggestion {
pub message: String,
pub replacements: Vec<Replacement>,
}Fields§
§message: String§replacements: Vec<Replacement>Implementations§
Source§impl Suggestion
impl Suggestion
pub fn new(message: impl Into<String>) -> Self
pub fn with_replacement(self, replacement: Replacement) -> Self
pub fn with_replacements(self, replacements: Vec<Replacement>) -> Self
Trait Implementations§
Source§impl Clone for Suggestion
impl Clone for Suggestion
Source§impl Debug for Suggestion
impl Debug for Suggestion
impl Eq for Suggestion
Source§impl PartialEq for Suggestion
impl PartialEq for Suggestion
impl StructuralPartialEq for Suggestion
Auto Trait Implementations§
impl Freeze for Suggestion
impl RefUnwindSafe for Suggestion
impl Send for Suggestion
impl Sync for Suggestion
impl Unpin for Suggestion
impl UnsafeUnpin for Suggestion
impl UnwindSafe for Suggestion
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