pub struct OptionCc(pub Option<CountryCode>);
Expand description
Wrapper for an Option<
CountryCode
>
that encodes None
as ??
.
Used so that we can implement foreign traits.
Tuple Fields§
§0: Option<CountryCode>
Trait Implementations§
source§impl AsRef<Option<CountryCode>> for OptionCc
impl AsRef<Option<CountryCode>> for OptionCc
source§fn as_ref(&self) -> &Option<CountryCode>
fn as_ref(&self) -> &Option<CountryCode>
Converts this type into a shared reference of the (usually inferred) input type.
impl Copy for OptionCc
impl Eq for OptionCc
impl StructuralPartialEq for OptionCc
Auto Trait Implementations§
impl Freeze for OptionCc
impl RefUnwindSafe for OptionCc
impl Send for OptionCc
impl Sync for OptionCc
impl Unpin for OptionCc
impl UnwindSafe for OptionCc
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)