Struct xpcom::interfaces::nsIDataType
[−]
[src]
#[repr(C)]pub struct nsIDataType { /* fields omitted */ }
interface nsIDataType : nsISupports
Methods
impl nsIDataType
[src]
pub fn coerce<T: nsIDataTypeCoerce>(&self) -> &T
[src]
Cast this nsIDataType
to one of its base interfaces.
impl nsIDataType
[src]
pub const VTYPE_INT8: i64
VTYPE_INT8: i64 = 0
pub const VTYPE_INT16: i64
VTYPE_INT16: i64 = 1
pub const VTYPE_INT32: i64
VTYPE_INT32: i64 = 2
pub const VTYPE_INT64: i64
VTYPE_INT64: i64 = 3
pub const VTYPE_UINT8: i64
VTYPE_UINT8: i64 = 4
pub const VTYPE_UINT16: i64
VTYPE_UINT16: i64 = 5
pub const VTYPE_UINT32: i64
VTYPE_UINT32: i64 = 6
pub const VTYPE_UINT64: i64
VTYPE_UINT64: i64 = 7
pub const VTYPE_FLOAT: i64
VTYPE_FLOAT: i64 = 8
pub const VTYPE_DOUBLE: i64
VTYPE_DOUBLE: i64 = 9
pub const VTYPE_BOOL: i64
VTYPE_BOOL: i64 = 10
pub const VTYPE_CHAR: i64
VTYPE_CHAR: i64 = 11
pub const VTYPE_WCHAR: i64
VTYPE_WCHAR: i64 = 12
pub const VTYPE_VOID: i64
VTYPE_VOID: i64 = 13
pub const VTYPE_ID: i64
VTYPE_ID: i64 = 14
pub const VTYPE_DOMSTRING: i64
VTYPE_DOMSTRING: i64 = 15
pub const VTYPE_CHAR_STR: i64
VTYPE_CHAR_STR: i64 = 16
pub const VTYPE_WCHAR_STR: i64
VTYPE_WCHAR_STR: i64 = 17
pub const VTYPE_INTERFACE: i64
VTYPE_INTERFACE: i64 = 18
pub const VTYPE_INTERFACE_IS: i64
VTYPE_INTERFACE_IS: i64 = 19
pub const VTYPE_ARRAY: i64
VTYPE_ARRAY: i64 = 20
pub const VTYPE_STRING_SIZE_IS: i64
VTYPE_STRING_SIZE_IS: i64 = 21
pub const VTYPE_WSTRING_SIZE_IS: i64
VTYPE_WSTRING_SIZE_IS: i64 = 22
pub const VTYPE_UTF8STRING: i64
VTYPE_UTF8STRING: i64 = 23
pub const VTYPE_CSTRING: i64
VTYPE_CSTRING: i64 = 24
pub const VTYPE_ASTRING: i64
VTYPE_ASTRING: i64 = 25
pub const VTYPE_EMPTY_ARRAY: i64
VTYPE_EMPTY_ARRAY: i64 = 254
pub const VTYPE_EMPTY: i64
VTYPE_EMPTY: i64 = 255
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 nsIDataType
[src]
const IID: nsIID
IID: nsIID = nsID(1293083968, 33751, 4565, [144, 237, 0, 16, 164, 231, 61, 154])
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 nsIDataType
[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 nsIDataType
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.