Struct xpcom::interfaces::nsIDOMSerializer
[−]
[src]
#[repr(C)]pub struct nsIDOMSerializer { /* fields omitted */ }
interface nsIDOMSerializer : nsISupports
/**
* The nsIDOMSerializer interface is really a placeholder till the W3C
* DOM Working Group defines a mechanism for serializing DOM nodes.
* An instance of this interface can be used to serialize a DOM document
* or any DOM subtree.
*/
Methods
impl nsIDOMSerializer
[src]
pub fn coerce<T: nsIDOMSerializerCoerce>(&self) -> &T
[src]
Cast this nsIDOMSerializer
to one of its base interfaces.
impl nsIDOMSerializer
[src]
pub unsafe fn SerializeToString(
&self,
root: *const nsIDOMNode,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
root: *const nsIDOMNode,
_retval: &mut nsAString
) -> nsresult
/**
* The subtree rooted by the specified element is serialized to
* a string.
*
* @param root The root of the subtree to be serialized. This could
* be any node, including a Document.
* @returns The serialized subtree in the form of a Unicode string
*/
AString serializeToString (in nsIDOMNode root);
pub unsafe fn SerializeToStream(
&self,
root: *const nsIDOMNode,
stream: *const nsIOutputStream,
charset: &nsACString
) -> nsresult
[src]
&self,
root: *const nsIDOMNode,
stream: *const nsIOutputStream,
charset: &nsACString
) -> nsresult
/**
* The subtree rooted by the specified element is serialized to
* a byte stream using the character set specified.
* @param root The root of the subtree to be serialized. This could
* be any node, including a Document.
* @param stream The byte stream to which the subtree is serialized.
* @param charset The name of the character set to use for the encoding
* to a byte stream. If this string is empty and root is
* a document, the document's character set will be used.
*/
void serializeToStream (in nsIDOMNode root, in nsIOutputStream stream, in AUTF8String charset);
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 nsIDOMSerializer
[src]
const IID: nsIID
IID: nsIID = nsID(2681518613, 59004, 19608, [181, 44, 119, 21, 246, 44, 145, 150])
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 nsIDOMSerializer
[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 nsIDOMSerializer
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.