Struct xpcom::interfaces::nsIWritableVariant [] [src]

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

interface nsIWritableVariant : nsIVariant

/**
 * An object that implements nsIVariant may or may NOT also implement this
 * nsIWritableVariant.
 *
 * If the 'writable' attribute is false then attempts to call any of the 'set'
 * methods can be expected to fail. Setting the 'writable' attribute may or
 * may not succeed.
 *
 */

Methods

impl nsIWritableVariant
[src]

[src]

Cast this nsIWritableVariant to one of its base interfaces.

impl nsIWritableVariant
[src]

[src]

attribute boolean writable;

[src]

attribute boolean writable;

[src]

void setAsInt8 (in uint8_t aValue);

[src]

void setAsInt16 (in int16_t aValue);

[src]

void setAsInt32 (in int32_t aValue);

[src]

void setAsInt64 (in int64_t aValue);

[src]

void setAsUint8 (in uint8_t aValue);

[src]

void setAsUint16 (in uint16_t aValue);

[src]

void setAsUint32 (in uint32_t aValue);

[src]

void setAsUint64 (in uint64_t aValue);

[src]

void setAsFloat (in float aValue);

[src]

void setAsDouble (in double aValue);

[src]

void setAsBool (in boolean aValue);

[src]

void setAsChar (in char aValue);

[src]

void setAsWChar (in wchar aValue);

[src]

void setAsID (in nsIDRef aValue);

[src]

void setAsAString (in AString aValue);

[src]

void setAsDOMString (in DOMString aValue);

[src]

void setAsACString (in ACString aValue);

[src]

void setAsAUTF8String (in AUTF8String aValue);

[src]

void setAsString (in string aValue);

[src]

void setAsWString (in wstring aValue);

[src]

void setAsISupports (in nsISupports aValue);

[src]

void setAsInterface (in nsIIDRef iid, [iid_is (iid)] in nsQIResult iface);

[src]

[noscript] void setAsArray (in uint16_t type, in nsIIDPtr iid, in uint32_t count, in voidPtr ptr);

[src]

void setAsStringWithSize (in uint32_t size, [size_is (size)] in string str);

[src]

void setAsWStringWithSize (in uint32_t size, [size_is (size)] in wstring str);

[src]

void setAsVoid ();

[src]

void setAsEmpty ();

[src]

void setAsEmptyArray ();

[src]

void setFromVariant (in nsIVariant aValue);

Methods from Deref<Target = nsIVariant>

[src]

Cast this nsIVariant to one of its base interfaces.

[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);

Trait Implementations

impl XpCom for nsIWritableVariant
[src]

IID: nsIID = nsID(1434887568, 35970, 4565, [144, 243, 0, 16, 164, 231, 61, 154])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIWritableVariant
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.