[−][src]Struct term::WinConsole
A Terminal implementation which uses the Win32 Console API.
Implementations
impl<T: Write + Send> WinConsole<T>
[src]
pub fn new_with_consoleinfo(out: T, info: WinConsoleInfo) -> WinConsole<T>ⓘNotable traits for WinConsole<T>
impl<T: Write> Write for WinConsole<T>
[src]
Notable traits for WinConsole<T>
impl<T: Write> Write for WinConsole<T>
Create a new WinConsole with the given WinConsoleInfo and out
pub fn new(out: T) -> Result<WinConsole<T>>
[src]
Returns Err
whenever the terminal cannot be created for some
reason.
Trait Implementations
impl<T: Write + Send> Terminal for WinConsole<T>
[src]
type Output = T
The terminal's output writer type.
pub fn fg(&mut self, color: Color) -> Result<()>
[src]
pub fn bg(&mut self, color: Color) -> Result<()>
[src]
pub fn attr(&mut self, attr: Attr) -> Result<()>
[src]
pub fn supports_attr(&self, attr: Attr) -> bool
[src]
pub fn reset(&mut self) -> Result<()>
[src]
pub fn supports_reset(&self) -> bool
[src]
pub fn supports_color(&self) -> bool
[src]
pub fn cursor_up(&mut self) -> Result<()>
[src]
pub fn delete_line(&mut self) -> Result<()>
[src]
pub fn carriage_return(&mut self) -> Result<()>
[src]
pub fn get_ref<'a>(&'a self) -> &'a T
[src]
pub fn get_mut<'a>(&'a mut self) -> &'a mut T
[src]
pub fn into_inner(self) -> T where
Self: Sized,
[src]
Self: Sized,
impl<T: Write> Write for WinConsole<T>
[src]
pub fn write(&mut self, buf: &[u8]) -> Result<usize>
[src]
pub fn flush(&mut self) -> Result<()>
[src]
pub fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize, Error>
1.36.0[src]
pub fn is_write_vectored(&self) -> bool
[src]
pub fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]
pub fn write_all_vectored(
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>
[src]
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>
pub fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<(), Error>
1.0.0[src]
pub fn by_ref(&mut self) -> &mut Self
1.0.0[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for WinConsole<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for WinConsole<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for WinConsole<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for WinConsole<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for WinConsole<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,