Struct xpcom::interfaces::nsISupportsFloat
[−]
[src]
#[repr(C)]pub struct nsISupportsFloat { /* fields omitted */ }
interface nsISupportsFloat : nsISupportsPrimitive
/**
* Scriptable storage for floating point numbers
*/
Methods
impl nsISupportsFloat
[src]
pub fn coerce<T: nsISupportsFloatCoerce>(&self) -> &T
[src]
Cast this nsISupportsFloat
to one of its base interfaces.
impl nsISupportsFloat
[src]
pub unsafe fn GetData(&self, aData: *mut c_float) -> nsresult
[src]
attribute float data;
pub unsafe fn SetData(&self, aData: c_float) -> nsresult
[src]
attribute float data;
pub unsafe fn ToString(&self, _retval: *mut *const c_char) -> nsresult
[src]
string toString ();
Methods from Deref<Target = nsISupportsPrimitive>
pub fn coerce<T: nsISupportsPrimitiveCoerce>(&self) -> &T
[src]
Cast this nsISupportsPrimitive
to one of its base interfaces.
pub const TYPE_ID: i64
pub const TYPE_CSTRING: i64
pub const TYPE_STRING: i64
pub const TYPE_PRBOOL: i64
pub const TYPE_PRUINT8: i64
pub const TYPE_PRUINT16: i64
pub const TYPE_PRUINT32: i64
pub const TYPE_PRUINT64: i64
pub const TYPE_PRTIME: i64
pub const TYPE_CHAR: i64
pub const TYPE_PRINT16: i64
pub const TYPE_PRINT32: i64
pub const TYPE_PRINT64: i64
pub const TYPE_FLOAT: i64
pub const TYPE_DOUBLE: i64
pub const TYPE_INTERFACE_POINTER: i64
pub unsafe fn GetType(&self, aType: *mut uint16_t) -> nsresult
[src]
readonly attribute unsigned short type;
Trait Implementations
impl XpCom for nsISupportsFloat
[src]
const IID: nsIID
IID: nsIID = nsID(2884281232, 19136, 4563, [186, 234, 0, 128, 95, 138, 93, 215])
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 nsISupportsFloat
[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 nsISupportsFloat
[src]
type Target = nsISupportsPrimitive
The resulting type after dereferencing.
fn deref(&self) -> &nsISupportsPrimitive
[src]
Dereferences the value.