Struct xpcom::interfaces::nsIPrefLocalizedString
[−]
[src]
#[repr(C)]pub struct nsIPrefLocalizedString { /* fields omitted */ }
interface nsIPrefLocalizedString : nsISupportsString
/**
* The nsIPrefLocalizedString interface is simply a wrapper interface for
* nsISupportsString so the preferences service can have a unique identifier
* to distinguish between requests for normal wide strings (nsISupportsString)
* and "localized" wide strings, which get their default values from properites
* files.
*
* @see nsIPrefBranch
* @see nsISupportsString
*/
Methods
impl nsIPrefLocalizedString
[src]
pub fn coerce<T: nsIPrefLocalizedStringCoerce>(&self) -> &T
[src]
Cast this nsIPrefLocalizedString
to one of its base interfaces.
Methods from Deref<Target = nsISupportsString>
pub fn coerce<T: nsISupportsStringCoerce>(&self) -> &T
[src]
Cast this nsISupportsString
to one of its base interfaces.
pub unsafe fn GetData(&self, aData: &mut nsAString) -> nsresult
[src]
attribute AString data;
pub unsafe fn SetData(&self, aData: &nsAString) -> nsresult
[src]
attribute AString data;
pub unsafe fn ToString(&self, _retval: *mut *const int16_t) -> nsresult
[src]
wstring toString ();
Trait Implementations
impl XpCom for nsIPrefLocalizedString
[src]
const IID: nsIID
IID: nsIID = nsID(2923535908, 7633, 4530, [179, 154, 211, 229, 231, 7, 56, 2])
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 nsIPrefLocalizedString
[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 nsIPrefLocalizedString
[src]
type Target = nsISupportsString
The resulting type after dereferencing.
fn deref(&self) -> &nsISupportsString
[src]
Dereferences the value.