Struct xpcom::interfaces::nsIUnicharLineInputStream
[−]
[src]
#[repr(C)]pub struct nsIUnicharLineInputStream { /* fields omitted */ }
interface nsIUnicharLineInputStream : nsISupports
Methods
impl nsIUnicharLineInputStream
[src]
pub fn coerce<T: nsIUnicharLineInputStreamCoerce>(&self) -> &T
[src]
Cast this nsIUnicharLineInputStream
to one of its base interfaces.
impl nsIUnicharLineInputStream
[src]
pub unsafe fn ReadLine(
&self,
aLine: &mut nsAString,
_retval: *mut bool
) -> nsresult
[src]
&self,
aLine: &mut nsAString,
_retval: *mut bool
) -> nsresult
/**
* Read a single line from the stream, where a line is a
* possibly zero length sequence of characters terminated by a
* CR, LF, CRLF, LFCR, or eof.
* The line terminator is not returned.
* @retval false
* End of file. This line is the last line of the file
* (aLine is valid).
* @retval true
* The file contains further lines.
* @note Do not mix readLine with other read functions.
* Doing so can cause various problems and is not supported.
*/
boolean readLine (out AString aLine);
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 nsIUnicharLineInputStream
[src]
const IID: nsIID
IID: nsIID = nsID(1744053365, 47744, 16632, [172, 11, 100, 156, 137, 35, 1, 132])
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 nsIUnicharLineInputStream
[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 nsIUnicharLineInputStream
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.