#[non_exhaustive]pub struct Corrected {
pub postcode: Postcode,
pub corrections: usize,
}Expand description
The result of Postcode::parse_lenient.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.postcode: Postcode§corrections: usizeHow many characters were swapped for their look-alike.
Trait Implementations§
impl Copy for Corrected
impl Eq for Corrected
impl StructuralPartialEq for Corrected
Auto Trait Implementations§
impl Freeze for Corrected
impl RefUnwindSafe for Corrected
impl Send for Corrected
impl Sync for Corrected
impl Unpin for Corrected
impl UnsafeUnpin for Corrected
impl UnwindSafe for Corrected
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