1mod errors; 2#[macro_use] 3mod non_utf8; 4mod utf8; 5 6/// Interface to try to perform a cheap reference-to-reference conversion. 7pub trait TryAsRef<T: ?Sized> { 8 fn try_as_ref(&self) -> Option<&T>; 9} 10 11pub use errors::*; 12pub use non_utf8::*; 13pub use utf8::*;