pub trait IWrite: Any + Write { }Expand description
Console interface for actions to writer output to.
Implementations§
Source§impl dyn IWrite
impl dyn IWrite
Sourcepub fn downcast_ref<T: Any>(&self) -> Option<&T>
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.
Sourcepub fn downcast_mut<T: Any>(&mut self) -> Option<&mut T>
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.