Load an immutable reference to an account’s data as an arbitrary type. This requires
that the provided type implements the DataLen trait so there’s assurance that
no out of bounds access will occur.
Extract an account’s discriminator. This is useful if working with Anchor programs,
and you need to validate that a provided account is of a specific type.
Load a mutable reference to an account’s data as an arbitrary type. This requires
that the provided type implements the DataLen trait so there’s assurance that
no out of bounds access will occur.