1use core::{ 2 any::Any, 3 fmt::{Result, Write}, 4}; 5 6pub trait Serial: Write { 7 fn put(&self, c: char) -> Result; 8 fn get(&self) -> Option<char>; 9 10 /// Get a mutable reference to Any for downcasting 11 fn as_any_mut(&mut self) -> &mut dyn Any; 12}