Struct xpcom::interfaces::nsIRDFContainer
[−]
[src]
#[repr(C)]pub struct nsIRDFContainer { /* fields omitted */ }
interface nsIRDFContainer : nsISupports
Methods
impl nsIRDFContainer
[src]
pub fn coerce<T: nsIRDFContainerCoerce>(&self) -> &T
[src]
Cast this nsIRDFContainer
to one of its base interfaces.
impl nsIRDFContainer
[src]
pub unsafe fn GetDataSource(
&self,
aDataSource: *mut *const nsIRDFDataSource
) -> nsresult
[src]
&self,
aDataSource: *mut *const nsIRDFDataSource
) -> nsresult
readonly attribute nsIRDFDataSource DataSource;
pub unsafe fn GetResource(
&self,
aResource: *mut *const nsIRDFResource
) -> nsresult
[src]
&self,
aResource: *mut *const nsIRDFResource
) -> nsresult
readonly attribute nsIRDFResource Resource;
pub unsafe fn Init(
&self,
aDataSource: *const nsIRDFDataSource,
aContainer: *const nsIRDFResource
) -> nsresult
[src]
&self,
aDataSource: *const nsIRDFDataSource,
aContainer: *const nsIRDFResource
) -> nsresult
/**
* Initialize the container wrapper to the specified resource
* using the specified datasource for context.
*/
void Init (in nsIRDFDataSource aDataSource, in nsIRDFResource aContainer);
pub unsafe fn GetCount(&self, _retval: *mut int32_t) -> nsresult
[src]
/**
* Return the number of elements in the container. Note that this
* may not always be accurate due to aggregation.
*/
long GetCount ();
pub unsafe fn GetElements(
&self,
_retval: *mut *const nsISimpleEnumerator
) -> nsresult
[src]
&self,
_retval: *mut *const nsISimpleEnumerator
) -> nsresult
/**
* Return an enumerator that can be used to enumerate the contents
* of the container in ascending order.
*/
nsISimpleEnumerator GetElements ();
pub unsafe fn AppendElement(&self, aElement: *const nsIRDFNode) -> nsresult
[src]
/**
* Append an element to the container, assigning it the next
* available ordinal.
*/
void AppendElement (in nsIRDFNode aElement);
pub unsafe fn RemoveElement(
&self,
aElement: *const nsIRDFNode,
aRenumber: bool
) -> nsresult
[src]
&self,
aElement: *const nsIRDFNode,
aRenumber: bool
) -> nsresult
/**
* Remove the first occurence of the specified element from the
* container. If aRenumber is 'true', then the underlying RDF graph
* will be 're-numbered' to account for the removal.
*/
void RemoveElement (in nsIRDFNode aElement, in boolean aRenumber);
pub unsafe fn InsertElementAt(
&self,
aElement: *const nsIRDFNode,
aIndex: int32_t,
aRenumber: bool
) -> nsresult
[src]
&self,
aElement: *const nsIRDFNode,
aIndex: int32_t,
aRenumber: bool
) -> nsresult
/**
* Insert aElement at the specified index. If aRenumber is 'true', then
* the underlying RDF graph will be 're-numbered' to accomodate the new
* element.
*/
void InsertElementAt (in nsIRDFNode aElement, in long aIndex, in boolean aRenumber);
pub unsafe fn RemoveElementAt(
&self,
aIndex: int32_t,
aRenumber: bool,
_retval: *mut *const nsIRDFNode
) -> nsresult
[src]
&self,
aIndex: int32_t,
aRenumber: bool,
_retval: *mut *const nsIRDFNode
) -> nsresult
/**
* Remove the element at the specified index. If aRenumber is 'true', then
* the underlying RDF graph will be 're-numbered' to account for the
* removal.
*
* @return the element that was removed.
*/
nsIRDFNode RemoveElementAt (in long aIndex, in boolean aRenumber);
pub unsafe fn IndexOf(
&self,
aElement: *const nsIRDFNode,
_retval: *mut int32_t
) -> nsresult
[src]
&self,
aElement: *const nsIRDFNode,
_retval: *mut int32_t
) -> nsresult
/**
* Determine the index of an element in the container.
*
* @return The index of the specified element in the container. If
* the element is not contained in the container, this function
* returns '-1'.
*/
long IndexOf (in nsIRDFNode aElement);
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 nsIRDFContainer
[src]
const IID: nsIID
IID: nsIID = nsID(3558952592, 64404, 4562, [189, 216, 0, 16, 75, 222, 96, 72])
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 nsIRDFContainer
[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 nsIRDFContainer
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.