Struct xpcom::interfaces::nsISupportsPrimitive
[−]
[src]
#[repr(C)]pub struct nsISupportsPrimitive { /* fields omitted */ }
interface nsISupportsPrimitive : nsISupports
/**
* Primitive base interface.
*
* These first three are pointer types and do data copying
* using the nsIMemory. Be careful!
*/
Methods
impl nsISupportsPrimitive
[src]
pub fn coerce<T: nsISupportsPrimitiveCoerce>(&self) -> &T
[src]
Cast this nsISupportsPrimitive
to one of its base interfaces.
impl nsISupportsPrimitive
[src]
pub const TYPE_ID: i64
TYPE_ID: i64 = 1
pub const TYPE_CSTRING: i64
TYPE_CSTRING: i64 = 2
pub const TYPE_STRING: i64
TYPE_STRING: i64 = 3
pub const TYPE_PRBOOL: i64
TYPE_PRBOOL: i64 = 4
pub const TYPE_PRUINT8: i64
TYPE_PRUINT8: i64 = 5
pub const TYPE_PRUINT16: i64
TYPE_PRUINT16: i64 = 6
pub const TYPE_PRUINT32: i64
TYPE_PRUINT32: i64 = 7
pub const TYPE_PRUINT64: i64
TYPE_PRUINT64: i64 = 8
pub const TYPE_PRTIME: i64
TYPE_PRTIME: i64 = 9
pub const TYPE_CHAR: i64
TYPE_CHAR: i64 = 10
pub const TYPE_PRINT16: i64
TYPE_PRINT16: i64 = 11
pub const TYPE_PRINT32: i64
TYPE_PRINT32: i64 = 12
pub const TYPE_PRINT64: i64
TYPE_PRINT64: i64 = 13
pub const TYPE_FLOAT: i64
TYPE_FLOAT: i64 = 14
pub const TYPE_DOUBLE: i64
TYPE_DOUBLE: i64 = 15
pub const TYPE_INTERFACE_POINTER: i64
TYPE_INTERFACE_POINTER: i64 = 17
pub unsafe fn GetType(&self, aType: *mut uint16_t) -> nsresult
[src]
readonly attribute unsigned short type;
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 nsISupportsPrimitive
[src]
const IID: nsIID
IID: nsIID = nsID(3503599926, 7633, 4530, [147, 113, 240, 114, 126, 248, 39, 192])
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 nsISupportsPrimitive
[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 nsISupportsPrimitive
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.