Trait polkadot_sdk_frame::traits::IsType
pub trait IsType<T>: Into<T> + From<T> {
// Required methods
fn from_ref(t: &T) -> &Self;
fn into_ref(&self) -> &T;
fn from_mut(t: &mut T) -> &mut Self;
fn into_mut(&mut self) -> &mut T;
}
Expand description
Trait to be used when types are exactly same.
This allow to convert back and forth from type, a reference and a mutable reference.
Required Methods§
Object Safety§
This trait is not object safe.