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§
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>
👎Deprecated since 0.1.1: underlying native function can cause issues. Use getnstr() instead
fn get_wch(&self) -> Result<CharacterResult<WideChar>, NCurseswWinError>
fn get_wstr(&self) -> Result<WideString, NCurseswWinError>
👎Deprecated since 0.1.1: underlying native function can cause issues. Use getn_wstr() instead
fn getch_nonblocking( &self, timeout: Timeout, ) -> Result<NonBlockingResult<char>, NCurseswWinError>
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.