pub trait ChainConversions: Sized + ChainConversionsSealed {
type Inner;
type MutChain<'mut_chain>
where Self: 'mut_chain;
// Required methods
fn as_inner(&self) -> &Self::Inner;
fn as_inner_mut(&mut self) -> &mut Self::Inner;
fn as_mut_chain(&mut self) -> Self::MutChain<'_>;
}
Expand description
Trait implemented on chains and their inner types, allowing you to get a reference to the inner type regardless of if the chain or the inner type is passed in
Required Associated Types§
Required Methods§
fn as_inner(&self) -> &Self::Inner
fn as_inner_mut(&mut self) -> &mut Self::Inner
fn as_mut_chain(&mut self) -> Self::MutChain<'_>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.