Struct xpcom::interfaces::nsICollation
[−]
[src]
#[repr(C)]pub struct nsICollation { /* fields omitted */ }
interface nsICollation : nsISupports
Methods
impl nsICollation
[src]
pub fn coerce<T: nsICollationCoerce>(&self) -> &T
[src]
Cast this nsICollation
to one of its base interfaces.
impl nsICollation
[src]
pub const kCollationStrengthDefault: i64
kCollationStrengthDefault: i64 = 0
pub const kCollationCaseInsensitiveAscii: i64
kCollationCaseInsensitiveAscii: i64 = 1
pub const kCollationAccentInsenstive: i64
kCollationAccentInsenstive: i64 = 2
pub const kCollationCaseSensitive: i64
kCollationCaseSensitive: i64 = 0
pub const kCollationCaseInSensitive: i64
kCollationCaseInSensitive: i64 = 3
pub unsafe fn Initialize(&self, locale: &nsACString) -> nsresult
[src]
void initialize (in ACString locale);
pub unsafe fn CompareString(
&self,
strength: int32_t,
string1: &nsAString,
string2: &nsAString,
_retval: *mut int32_t
) -> nsresult
[src]
&self,
strength: int32_t,
string1: &nsAString,
string2: &nsAString,
_retval: *mut int32_t
) -> nsresult
long compareString (in long strength, in AString string1, in AString string2);
pub unsafe fn AllocateRawSortKey(
&self,
strength: int32_t,
stringIn: &nsAString,
key: *mut *mut uint8_t,
outLen: *mut uint32_t
) -> nsresult
[src]
&self,
strength: int32_t,
stringIn: &nsAString,
key: *mut *mut uint8_t,
outLen: *mut uint32_t
) -> nsresult
[noscript] void allocateRawSortKey (in long strength, in AString stringIn, [array, size_is (outLen)] out octet key, out unsigned long outLen);
pub unsafe fn CompareRawSortKey(
&self,
key1: *const uint8_t,
len1: uint32_t,
key2: *const uint8_t,
len2: uint32_t,
_retval: *mut int32_t
) -> nsresult
[src]
&self,
key1: *const uint8_t,
len1: uint32_t,
key2: *const uint8_t,
len2: uint32_t,
_retval: *mut int32_t
) -> nsresult
[noscript] long compareRawSortKey ([array, size_is (len1), const] in octet key1, in unsigned long len1, [array, size_is (len2), const] in octet key2, in unsigned long len2);
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 nsICollation
[src]
const IID: nsIID
IID: nsIID = nsID(2954046656, 14214, 17751, [152, 116, 145, 13, 125, 239, 95, 147])
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 nsICollation
[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 nsICollation
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.