pub struct PhoneNumberFormatter(/* private fields */);
Implementations§
§impl PhoneNumberFormatter
impl PhoneNumberFormatter
pub fn new() -> Result<Self>
pub fn Format<P0>(&self, number: P0) -> Result<HSTRING>where
P0: IntoParam<PhoneNumberInfo>,
pub fn FormatWithOutputFormat<P0>(
&self,
number: P0,
numberformat: PhoneNumberFormat
) -> Result<HSTRING>where
P0: IntoParam<PhoneNumberInfo>,
pub fn FormatPartialString(&self, number: &HSTRING) -> Result<HSTRING>
pub fn FormatString(&self, number: &HSTRING) -> Result<HSTRING>
pub fn FormatStringWithLeftToRightMarkers( &self, number: &HSTRING ) -> Result<HSTRING>
pub fn TryCreate( regioncode: &HSTRING, phonenumber: &mut Option<PhoneNumberFormatter> ) -> Result<()>
pub fn GetCountryCodeForRegion(regioncode: &HSTRING) -> Result<i32>
pub fn GetNationalDirectDialingPrefixForRegion( regioncode: &HSTRING, stripnondigit: bool ) -> Result<HSTRING>
pub fn WrapWithLeftToRightMarkers(number: &HSTRING) -> Result<HSTRING>
Trait Implementations§
§impl Clone for PhoneNumberFormatter
impl Clone for PhoneNumberFormatter
§fn clone(&self) -> PhoneNumberFormatter
fn clone(&self) -> PhoneNumberFormatter
Returns a copy 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 more§impl Debug for PhoneNumberFormatter
impl Debug for PhoneNumberFormatter
§impl From<&PhoneNumberFormatter> for &IInspectable
impl From<&PhoneNumberFormatter> for &IInspectable
§fn from(value: &PhoneNumberFormatter) -> Self
fn from(value: &PhoneNumberFormatter) -> Self
Converts to this type from the input type.
§impl From<&PhoneNumberFormatter> for &IUnknown
impl From<&PhoneNumberFormatter> for &IUnknown
§fn from(value: &PhoneNumberFormatter) -> Self
fn from(value: &PhoneNumberFormatter) -> Self
Converts to this type from the input type.
§impl From<PhoneNumberFormatter> for IInspectable
impl From<PhoneNumberFormatter> for IInspectable
§fn from(value: PhoneNumberFormatter) -> Self
fn from(value: PhoneNumberFormatter) -> Self
Converts to this type from the input type.
§impl From<PhoneNumberFormatter> for IUnknown
impl From<PhoneNumberFormatter> for IUnknown
§fn from(value: PhoneNumberFormatter) -> Self
fn from(value: PhoneNumberFormatter) -> Self
Converts to this type from the input type.
§impl Interface for PhoneNumberFormatter
impl Interface for PhoneNumberFormatter
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for PhoneNumberFormatter
impl PartialEq for PhoneNumberFormatter
§fn eq(&self, other: &PhoneNumberFormatter) -> bool
fn eq(&self, other: &PhoneNumberFormatter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PhoneNumberFormatter
impl Send for PhoneNumberFormatter
impl StructuralPartialEq for PhoneNumberFormatter
impl Sync for PhoneNumberFormatter
Auto Trait Implementations§
impl RefUnwindSafe for PhoneNumberFormatter
impl Unpin for PhoneNumberFormatter
impl UnwindSafe for PhoneNumberFormatter
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