Struct xpcom::interfaces::nsIVariant [] [src]

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

interface nsIVariant : nsISupports

/**
 * XPConnect has magic to transparently convert between nsIVariant and JS types.
 * We mark the interface [scriptable] so that JS can use methods
 * that refer to this interface. But we mark all the methods and attributes
 * [noscript] since any nsIVariant object will be automatically converted to a
 * JS type anyway.
 */

Methods

impl nsIVariant
[src]

[src]

Cast this nsIVariant to one of its base interfaces.

impl nsIVariant
[src]

[src]

[noscript] readonly attribute uint16_t dataType;

[src]

[noscript] uint8_t getAsInt8 ();

[src]

[noscript] int16_t getAsInt16 ();

[src]

[noscript] int32_t getAsInt32 ();

[src]

[noscript] int64_t getAsInt64 ();

[src]

[noscript] uint8_t getAsUint8 ();

[src]

[noscript] uint16_t getAsUint16 ();

[src]

[noscript] uint32_t getAsUint32 ();

[src]

[noscript] uint64_t getAsUint64 ();

[src]

[noscript] float getAsFloat ();

[src]

[noscript] double getAsDouble ();

[src]

[noscript] boolean getAsBool ();

[src]

[noscript] char getAsChar ();

[src]

[noscript] wchar getAsWChar ();

[src]

[notxpcom] nsresult getAsID (out nsID retval);

[src]

[noscript] AString getAsAString ();

[src]

[noscript] DOMString getAsDOMString ();

[src]

[noscript] ACString getAsACString ();

[src]

[noscript] AUTF8String getAsAUTF8String ();

[src]

[noscript] string getAsString ();

[src]

[noscript] wstring getAsWString ();

[src]

[noscript] nsISupports getAsISupports ();

[src]

[noscript] void getAsInterface (out nsIIDPtr iid, [iid_is (iid), retval] out nsQIResult iface);

[src]

[notxpcom] nsresult getAsArray (out uint16_t type, out nsIID iid, out uint32_t count, out voidPtr ptr);

[src]

[noscript] void getAsStringWithSize (out uint32_t size, [size_is (size), retval] out string str);

[src]

[noscript] void getAsWStringWithSize (out uint32_t size, [size_is (size), retval] out wstring str);

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

IID: nsIID = nsID(2179252958, 44204, 19158, [144, 26, 181, 251, 27, 133, 26, 13])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIVariant
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.