entity_from_acc

Function entity_from_acc 

Source
pub fn entity_from_acc<'a, 'b: 'a, T: Entity>(
    acc: &'a AccountInfo<'b>,
    program_id: &Pubkey,
) -> Result<EntityGuard<'a, 'b, T>, ProgramError>