[][src]Struct ruspiro_console::Console

pub struct Console { /* fields omitted */ }

The representation of the abstract console

Implementations

impl Console[src]

pub fn get_current(&self) -> &dyn ConsoleImpl[src]

Retrieve the current active console to be used for passing strings to to get printend somewhere

pub fn replace<T: ConsoleImpl + 'static>(&mut self, console: T)[src]

Replacing the current active console. Once the new has been set the drop function of the previous one is called. The Console takes ownership of the active once. Access to the active console outside the abstraction is not possible and should not be.

Auto Trait Implementations

impl !Send for Console

impl !Sync for Console

impl Unpin for Console

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.