pub struct ExamplePair {
pub before: &'static str,
pub after: &'static str,
}Expand description
Before and after code examples.
Fields§
§before: &'static strCode that would trigger a finding.
after: &'static strCode that passes the check.
Trait Implementations§
Source§impl Clone for ExamplePair
impl Clone for ExamplePair
Source§fn clone(&self) -> ExamplePair
fn clone(&self) -> ExamplePair
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 ExamplePair
impl RefUnwindSafe for ExamplePair
impl Send for ExamplePair
impl Sync for ExamplePair
impl Unpin for ExamplePair
impl UnsafeUnpin for ExamplePair
impl UnwindSafe for ExamplePair
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