Skip to main content

ToAccountInfo

Trait ToAccountInfo 

Source
pub trait ToAccountInfo<'info> {
    // Required method
    fn to_account_info(&self) -> AccountInfo<'info>;
}
Expand description

Transformation to an AccountInfo struct.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'info, T> ToAccountInfo<'info> for T
where T: AsRef<AccountInfo<'info>>,