Struct windows::Globalization::Language
pub struct Language(/* private fields */);
Implementations§
§impl Language
impl Language
pub fn LanguageTag(&self) -> Result<HSTRING>
pub fn DisplayName(&self) -> Result<HSTRING>
pub fn NativeName(&self) -> Result<HSTRING>
pub fn Script(&self) -> Result<HSTRING>
pub fn LayoutDirection(&self) -> Result<LanguageLayoutDirection>
pub fn AbbreviatedName(&self) -> Result<HSTRING>
pub fn CreateLanguage(languagetag: &HSTRING) -> Result<Language>
pub fn IsWellFormed(languagetag: &HSTRING) -> Result<bool>
pub fn CurrentInputMethodLanguageTag() -> Result<HSTRING>
pub fn TrySetInputMethodLanguageTag(languagetag: &HSTRING) -> Result<bool>
pub fn GetMuiCompatibleLanguageListFromLanguageTags<P0>( languagetags: P0 ) -> Result<IVector<HSTRING>>
Trait Implementations§
§impl From<&Language> for &IInspectable
impl From<&Language> for &IInspectable
§impl From<Language> for IInspectable
impl From<Language> for IInspectable
§impl Interface for Language
impl Interface for Language
§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 moreimpl Eq for Language
impl Send for Language
impl StructuralPartialEq for Language
impl Sync for Language
Auto Trait Implementations§
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