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.
Source§impl From<Option<CountryCode>> for OptionCc
impl From<Option<CountryCode>> for OptionCc
Source§fn from(value: Option<CountryCode>) -> Self
fn from(value: Option<CountryCode>) -> Self
Converts to this type from the 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