Struct xpcom::interfaces::nsIFormatConverter [] [src]

#[repr(C)]
pub struct nsIFormatConverter { /* fields omitted */ }

interface nsIFormatConverter : nsISupports

Methods

impl nsIFormatConverter
[src]

[src]

Cast this nsIFormatConverter to one of its base interfaces.

impl nsIFormatConverter
[src]

[src]

/**
    * Get the list of the "input" data flavors (mime types as nsISupportsCString),
    * in otherwords, the flavors that this converter can convert "from" (the
    * incoming data to the converter).
    */

nsIArray getInputDataFlavors ();

[src]

/**
    * Get the list of the "output" data flavors (mime types as nsISupportsCString),
    * in otherwords, the flavors that this converter can convert "to" (the
    * outgoing data to the converter).
    *
    * @param  aDataFlavorList fills list with supported flavors
    */

nsIArray getOutputDataFlavors ();

[src]

/**
    * Determines whether a conversion from one flavor to another is supported
    *
    * @param  aFromFormatConverter flavor to convert from
    * @param  aFromFormatConverter flavor to convert to
    */

boolean canConvert (in string aFromDataFlavor, in string aToDataFlavor);

[src]

/**
    * Converts from one flavor to another.
    *
    * @param  aFromFormatConverter flavor to convert from
    * @param  aFromFormatConverter flavor to convert to (destination own the memory)
    * @returns returns NS_OK if it was converted
    */

void convert (in string aFromDataFlavor, in nsISupports aFromData, in unsigned long aDataLen, in string aToDataFlavor, out nsISupports aToData, out unsigned long aDataToLen);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIFormatConverter
[src]

IID: nsIID = nsID(2492071971, 58279, 4562, [150, 207, 0, 96, 176, 251, 153, 86])

[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 nsIFormatConverter
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIFormatConverter
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.