HasGetFunctions

Trait HasGetFunctions 

Source
pub trait HasGetFunctions: HasHandle<WINDOW> + HasNonBlocking {
    // Provided methods
    fn getch(&self) -> Result<CharacterResult<char>, NCurseswWinError> { ... }
    fn getnstr(&self, length: u16) -> Result<String, NCurseswWinError> { ... }
    fn getn_wstr(&self, length: u16) -> Result<WideString, NCurseswWinError> { ... }
    fn getstr(&self) -> Result<String, NCurseswWinError> { ... }
    fn get_wch(&self) -> Result<CharacterResult<WideChar>, NCurseswWinError> { ... }
    fn get_wstr(&self) -> Result<WideString, NCurseswWinError> { ... }
    fn getch_nonblocking(
        &self,
        timeout: Timeout,
    ) -> Result<NonBlockingResult<char>, NCurseswWinError> { ... }
    fn get_wch_nonblocking(
        &self,
        timeout: Timeout,
    ) -> Result<NonBlockingResult<WideChar>, NCurseswWinError> { ... }
}
Expand description

Does the window canvas type have ncursesw get functions.

Provided Methods§

Source

fn getch(&self) -> Result<CharacterResult<char>, NCurseswWinError>

Source

fn getnstr(&self, length: u16) -> Result<String, NCurseswWinError>

Source

fn getn_wstr(&self, length: u16) -> Result<WideString, NCurseswWinError>

Source

fn getstr(&self) -> Result<String, NCurseswWinError>

👎Deprecated since 0.1.1: underlying native function can cause issues. Use getnstr() instead
Source

fn get_wch(&self) -> Result<CharacterResult<WideChar>, NCurseswWinError>

Source

fn get_wstr(&self) -> Result<WideString, NCurseswWinError>

👎Deprecated since 0.1.1: underlying native function can cause issues. Use getn_wstr() instead
Source

fn getch_nonblocking( &self, timeout: Timeout, ) -> Result<NonBlockingResult<char>, NCurseswWinError>

Source

fn get_wch_nonblocking( &self, timeout: Timeout, ) -> Result<NonBlockingResult<WideChar>, NCurseswWinError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§