pub struct EducationalAdvice {
pub why_bad: String,
pub how_to_fix: String,
pub example_bad: Option<String>,
pub example_good: Option<String>,
pub rust_docs_link: Option<String>,
pub best_practice_tip: Option<String>,
}Fields§
§why_bad: String§how_to_fix: String§example_bad: Option<String>§example_good: Option<String>§rust_docs_link: Option<String>§best_practice_tip: Option<String>Trait Implementations§
Source§impl Clone for EducationalAdvice
impl Clone for EducationalAdvice
Source§fn clone(&self) -> EducationalAdvice
fn clone(&self) -> EducationalAdvice
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 moreAuto Trait Implementations§
impl Freeze for EducationalAdvice
impl RefUnwindSafe for EducationalAdvice
impl Send for EducationalAdvice
impl Sync for EducationalAdvice
impl Unpin for EducationalAdvice
impl UnwindSafe for EducationalAdvice
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