Struct xpcom::interfaces::mozIMozIntl
[−]
[src]
#[repr(C)]pub struct mozIMozIntl { /* fields omitted */ }
interface mozIMozIntl : nsISupports
/**
* This is a set of APIs that are of general usefulness for user interface
* internationalization.
*
* They're all in various stages of the standardization process through
* ECMA402, so they are exposed to privileged content only but are written
* in the way to allow for easy migration to standard Intl object once
* the appropriate stage of the ECMA402 is achieved.
*
* The exact structure of the code is a little bit complex because of that:
*
* 1) The core is in SpiderMonkey together with other Intl APIs
*
* This allows us to write the code once, stick to the spec language
* of the proposal, reuse our ICU bindings in Spidermonkey and use
* the code to inform us on refining the spec proposal for the given API itself.
*
* 2) The MozIntlHelper API exposes the SpiderMonkey APIs
*
* This helper API allows attaching the new APIs on any regular object.
*
* 3) The MozIntl API provides the access to those APIs
*
* This API exposes the actual functionality and wraps around the MozIntlHelper
* lazily retrieving and setting the accessors.
* On top of that, the API also binds additional functionality like using
* current application locale by default, and fetching OS regional preferences
* for date time format.
*/
Methods
impl mozIMozIntl
[src]
pub fn coerce<T: mozIMozIntlCoerce>(&self) -> &T
[src]
Cast this mozIMozIntl
to one of its base interfaces.
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for mozIMozIntl
[src]
const IID: nsIID
IID: nsIID = nsID(2137204634, 6697, 19174, [158, 122, 220, 150, 132, 162, 53, 48])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for mozIMozIntl
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for mozIMozIntl
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.