IWrite

Trait IWrite 

Source
pub trait IWrite: Any + Write { }
Expand description

Console interface for actions to writer output to.

Implementations§

Source§

impl dyn IWrite

Source

pub fn is<T: Any>(&self) -> bool

Returns true if the inner type is the same as T.

Source

pub fn downcast_ref<T: Any>(&self) -> Option<&T>

Returns some reference to the inner value if it is of type T, or None if it isn’t.

Source

pub fn downcast_mut<T: Any>(&mut self) -> Option<&mut T>

Returns some mutable reference to the inner value if it is of type T, or None if it isn’t.

Implementations on Foreign Types§

Source§

impl IWrite for String

Implementors§

Source§

impl IWrite for NullWriter

Source§

impl<W: Write + 'static> IWrite for IoWriter<W>