Struct xpcom::interfaces::nsISearchParseSubmissionResult
[−]
[src]
#[repr(C)]pub struct nsISearchParseSubmissionResult { /* fields omitted */ }
interface nsISearchParseSubmissionResult : nsISupports
Methods
impl nsISearchParseSubmissionResult
[src]
pub fn coerce<T: nsISearchParseSubmissionResultCoerce>(&self) -> &T
[src]
Cast this nsISearchParseSubmissionResult
to one of its base interfaces.
impl nsISearchParseSubmissionResult
[src]
pub unsafe fn GetEngine(&self, aEngine: *mut *const nsISearchEngine) -> nsresult
[src]
/**
* The search engine associated with the URL passed in to
* nsISearchEngine::parseSubmissionURL, or null if the URL does not represent
* a search submission.
*/
readonly attribute nsISearchEngine engine;
pub unsafe fn GetTerms(&self, aTerms: &mut nsAString) -> nsresult
[src]
/**
* String containing the sought terms. This can be an empty string in case no
* terms were specified or the URL does not represent a search submission.
*/
readonly attribute AString terms;
pub unsafe fn GetTermsOffset(&self, aTermsOffset: *mut int32_t) -> nsresult
[src]
/**
* The offset of the string |terms| in the URL passed in to
* nsISearchEngine::parseSubmissionURL, or -1 if the URL does not represent
* a search submission.
*/
readonly attribute long termsOffset;
pub unsafe fn GetTermsLength(&self, aTermsLength: *mut int32_t) -> nsresult
[src]
/**
* The length of the |terms| in the original encoding of the URL passed in to
* nsISearchEngine::parseSubmissionURL. If the search term in the original
* URL is encoded then this will be bigger than |terms.length|.
*/
readonly attribute long termsLength;
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 nsISearchParseSubmissionResult
[src]
const IID: nsIID
IID: nsIID = nsID(231292497, 42943, 18966, [134, 45, 75, 52, 105, 255, 98, 6])
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 nsISearchParseSubmissionResult
[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 nsISearchParseSubmissionResult
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.